IP Whitlisting calls between nextjs and backend

Vote:
 

Hi Everyone,

Our Opti application is hosted by Optimizely azure. We are following headless architecture where we have Nextjs and opti backend on same app service 

We are deploying a whitelisting feature and its working fine locally but when deploying it it doesn't. We found out through appinsight that the calls from nextjs is being blocked and not whitlisted so we 

add the following to the IP whitlist:
::1

:::1

127.0.0.1

Unfortunately it still not working, though everythign working fine locally. Now surely we cannot use internal IP because we sure have more than instance/node on the production.

Below screenshot of how we are getting the IP address

Anyone faced this or can help please. 

#342001
Mar 19, 2026 16:55
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.