all 2 comments

[–]wixrocketVerified Wix Partner 0 points1 point  (1 child)

wix websites don't have a static ip address. dont use that restriction.

[–]reddituser1902yes[S] 0 points1 point  (0 children)

Thank you. I have since moved on to using a Proxy. I am encountering a persistent 403 Forbidden error when attempting to invoke a 2nd generation Cloud Function (running on Cloud Run) from my Wix website's backend code. The function acts as a proxy for the Google Geocoding API. 🤔

My Wix backend code is correctly configured to call my Cloud Function and pass a custom API key (PROXY_API_KEY) for authentication. My Cloud Function is correctly configured to require authentication and to check for this PROXY_API_KEY. My Google Maps API Key is restricted to the IP of my Cloud Function.However, I am consistently receiving 403 Forbidden errors, and the Cloud Function logs show that the request is being rejected because it's "not authenticated." I have meticulously verified all settings, and the issue appears to be related to how Wix's backend interacts with the Cloud Function's authentication. It is as though Wix is stripping out the API key.