-
Notifications
You must be signed in to change notification settings - Fork 194
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
CORS: PATCH method is not allowed #109
Comments
Thanks, do you have an example API endpoint that utilizes the |
PATCH is like PUT, but only for updating a part of an entity. In both cases you pass a JSON object of your choice, but while for PUT the object contains all fields, PATCH - only a subset; typically just one (e.g., changing password of a user without altering his/her name/lastname/etc) |
Yeah, I get what |
On success, |
I believe in
corsHeaders()
, inheader('Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS');
the PATCH method is missing.
Thanks for sharing the very useful code!
The text was updated successfully, but these errors were encountered: