Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy requests to /backend to the backend and to get rid of CORS #1068

Open
roschaefer opened this issue Feb 7, 2019 · 0 comments
Open

Proxy requests to /backend to the backend and to get rid of CORS #1068

roschaefer opened this issue Feb 7, 2019 · 0 comments
Labels

Comments

@roschaefer
Copy link
Owner

Is your feature request related to a problem? Please describe.
In the docker setup, http://localhost:3000 can be reached from the host system but not from the docker network. Additionally, backend url and frontend url are different, which requires us to setup CORS.

Describe the solution you'd like
It would be great to have one endpoint on the server side rendered frontend, e.g. '/backend that proxies to the backend. Thus, we would not have to use CORS, as the request goes to the same origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant