Replies: 1 comment 2 replies
-
Hi @wabiloo
Can you send me the complete exception traceback? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to build a FastAPI app with a reverse proxy. It sends the requests to a remote server, then modifies the response. It mostly works. However when it sits behind Cloudfront and makes a request to another Cloudfront endpoint (CF1 -> FastAPI -> CF2), I get 403 errors. It seems that it is linked to having a "via" header.
I'm trying to remove that header before sending the request, but when I do that, I get an Exception in ASGI application.
Here is the relevant part of the code:
If I comment the
if
statement, no issue (other than the 403 obviously).Any idea what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions