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

Support CORS headers #1687

Open
MarhiievHE opened this issue Oct 29, 2021 · 0 comments
Open

Support CORS headers #1687

MarhiievHE opened this issue Oct 29, 2021 · 0 comments

Comments

@MarhiievHE
Copy link
Member

MarhiievHE commented Oct 29, 2021

At this moment, API on impress has fixed headers for CORS. This is not always appropriate especially if we want to restrict requests from other websites.
Let's put in the server config the ability to set the Access-Control-Allow-Origin header. For example, adding to the server config:

cors: {
   origin: 'string',
},

Then in the metacom we can use the values from cors.origin in the response headers.

@tshemsedinov tshemsedinov changed the title CORS headers Support CORS headers Oct 29, 2021
tshemsedinov added a commit that referenced this issue Mar 20, 2022
tshemsedinov added a commit that referenced this issue Mar 20, 2022
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

No branches or pull requests

1 participant