close
The Wayback Machine - https://web.archive.org/web/20201213234439/https://github.com/Soluto/dynamico/issues/59
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

Add environment variables to control cors configuration in docker images #59

Open
eladav opened this issue Jul 11, 2019 · 2 comments
Open

Add environment variables to control cors configuration in docker images #59

eladav opened this issue Jul 11, 2019 · 2 comments

Comments

@eladav
Copy link
Collaborator

@eladav eladav commented Jul 11, 2019

The image uses the cors package from npm. The package is really configurable, check out
cors on npm. We need to think which configurations make sense and what is the best way to allow people to control them. If #58 is done before this it might affect the solution to this issue.

@Yshayy
Copy link

@Yshayy Yshayy commented Aug 14, 2019

Is there any reason to add more than "allowed origins"? I'd assume that browser apps should only fetch packages/components. Maybe even the default should be "*", since it's very similar to how browser fetch scripts/components from works from different domains.

@eladav
Copy link
Collaborator Author

@eladav eladav commented Aug 14, 2019

Using * as the default definitely makes sense. I guess that allowed origins are the only thing that makes sense to configure. I’d say that most users indeed will go with a catch-all configuration. Bottom line: I think you’re right :)

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.