Skip to content

Conversation

partiallyordered
Copy link
Contributor

@partiallyordered partiallyordered commented Feb 13, 2020

Exposing this already existing-config:
https://github.com/mojaloop/finance-portal-backend-service/blob/master/src/config/config.js#L38
to the chart. That controls whether the service responds with an Access-Control-Allow-Origin header that mirrors the Origin header in the request. When it does so, it means a UI served to the browser from any hostname can make requests to the backend- not just one served from the same hostname as the backend. It's standard browser security functionality- nothing implementation-specific.

The specific use-case I'm trying to enable in this case is hosting a frontend on a developer machine and a backend in a cluster somewhere. I.e. frontend on localhost, backend on some other hostname.

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

Successfully merging this pull request may close these issues.

2 participants