Open PhAzE-Variance opened 3 months ago
I'm not sure.
Your port number is weird, but i assume that's actually fine and you know what you're doing. I wondered if using a wildcard server name might work strangely with nginx and i found this
Which gives an example of how you might add:
add_header Access-Control-Allow-Origin codex.*
or something.
But i think what i would do is first try using a blank a slate nginx config that nearly exactly matches the one on the codex README and if that works, try adding your own preferred headers back into it a controlled block at a time to see if that's where the issue might be.
I have Codex running behind a reverse proxy as a subdomain. For this example it is https://codex.mysite.com. I can log in, however when I try to run admin tasks, I get the following error in the Last Task Queued:
CSRF Failed: Origin checking failed - https://codex.mysite.com does not match any trusted origins.
Here is my nginx config:
Contents in proxy.conf:
A quick Google says I need CSRF_TRUSTED_ORIGINS set somewhere, but passing it through the Docker instance doesn't make any difference.