8000 Exposing the portal backend CORS reflect origin option to make local testing easier by partiallyordered · Pull Request #260 · mojaloop/helm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Exposing the portal backend CORS reflect origin option to make local testing easier #260

New issue
Merged
merged 3 commits into from
Feb 14, 2020
Merged

Exposing the portal backend CORS reflect origin option to make local testing easier #260

merged 3 commits into from
Feb 14, 2020

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
0