You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By going to http://localhost:2222/login, I reach the login page, but when I try to login I get
Access to XMLHttpRequest at 'http://localhost/api/v1/users/me' from origin 'http://localhost:2222' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
on the javascript console. Adding localhost:2222 to the BACKEND_CORS_ORIGINS does not resolve the issue. If I switch to allow_origins=['*'] in backend/app/main.py, it works.
My goal was to establish a test environment, without getting a public domain, where my teammates can browse the app. Perhaps there is an easier way to achieve this...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
I have the stack built on an aws ec2 machine and I would like to connect to it via an ssh tunnel established via
By going to
http://localhost:2222/login
, I reach the login page, but when I try to login I geton the javascript console. Adding localhost:2222 to the BACKEND_CORS_ORIGINS does not resolve the issue. If I switch to
allow_origins=['*']
inbackend/app/main.py
, it works.My goal was to establish a test environment, without getting a public domain, where my teammates can browse the app. Perhaps there is an easier way to achieve this...
Operating System
Linux
Operating System Details
Ubuntu 22.04.4 LTS (GNU/Linux 6.5.0-1014-aws x86_64)
Python Version
3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions