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

refactor(index): change default methods to cors-safelisted methods #359

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Fdawgs
Copy link
Member

@Fdawgs Fdawgs commented Feb 18, 2025

Closes #358.

This is a breaking change and will require a semver major release.

Checklist

@Fdawgs Fdawgs requested a review from a team February 19, 2025 09:01
index.js Outdated
@@ -8,7 +8,7 @@ const {

const defaultOptions = {
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
methods: 'GET,HEAD,PUT',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From your reference, it should be GET, HEAD and POST. Instead of PUT.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, thanks @climba03003, fixed in 32c895b

@Fdawgs Fdawgs requested a review from climba03003 February 19, 2025 15:20
Copy link
Member

@climba03003 climba03003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please wait for one more approval before merging.

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.

Change default for methods option value to safe values
2 participants