Encountering the following error: Forbidden: Your client does not have permission to access URL from this server, when trying to call the Cloud Run URL from the API Gateway. When the API Gateway requests the Cloud Run URL, it changes the protocol from HTTPS to HTTP, and adds a backslash at the end of the Cloud Run URL. This results in a 307 redirect followed by a 403 forbidden error in the Cloud Run logs. I have not set any security in the API gateway yaml.
Hi @Chavvi,
Welcome to Google Cloud Community!
It looks like you're running into a 403 Forbidden error when your API Gateway tries to reach your Cloud Run service. This might arise when calling a Cloud Run service from a web browser, the browser sends a GET request without including the user's authorization token. Since Cloud Run needs that token for authentication, the request gets blocked. You may check this document to help you resolve the error caused by this.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
@Chavvi im having the same error as you. I did not change anything.