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

feat(cors): use safer api/public-only CORS configuration #271

Merged
merged 1 commit into from
Feb 17, 2020

Conversation

rjherrera
Copy link
Member

@rjherrera rjherrera commented Feb 17, 2020

This PR modifies the default configuration bundled by the rack-cors recipe. As of today we were allowing requests from any origin to any resource, which is a very unsafe configuration. The new config only allows get requests to the urls under public and index/show/create/update/delete requests for urls under api.

closes #202

@rjherrera rjherrera requested a review from ldlsegovia February 17, 2020 13:40
@rjherrera rjherrera requested a review from iobaixas February 17, 2020 14:11
@rjherrera rjherrera merged commit aafa861 into master Feb 17, 2020
@rjherrera rjherrera deleted the cors-configuration branch February 17, 2020 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Improve CORS default configuration
3 participants