[Bug/Feature Request] null origin in request headers leading to CORs failure #19932
Unanswered
colindunn109
asked this question in
Q&A
Replies: 0 comments
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.
-
We are trying to render a PDF using a URL we fetch from the BE. These are retrieval URLs that are signed with a token that redirect us to the S3 resource that stores the actual document.
IE
This endpoint lives on the 9000 host, but our app is being hosted on the 8000 host.
What this means that after we forward cookies in order to allow the initial BE request to pass, we are hit with a CORs policy failure due to our S3 bucket
allowed_origins
being set to*
.Error message:
We can likely get around this by changing our BE. But was wondering if there was a way, OR if we could open a PR to allow for the forwarding of a specific
origin
. I believe bc the origin is set tonull
bc this 3rd party library is making the network request is causing us to get hit by the CORs policy. I believe if we are able to setsame-origin
the CORs policy should pass.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions