NBISweden / encam

Encyclopedia of Cancer Microenvironment
http://encima.one
2 stars 2 forks source link

Allow cross-origin requests #34

Closed danr closed 4 years ago

danr commented 4 years ago

Allow any cross origin (at least for now)

This is required when developing locally using docker. The browser is not run inside docker and thus http://api:5000 cannot be reached! It is instead on localhost:1234 and the backend is exposed at localhost:8080. When the frontend calls the backend it's thus a cross request.

This is only really required for development. When deploying with flask this won't be necessary since they will be on the same host.

danr commented 4 years ago

Added the commit with OPTIONS!