-
Notifications
You must be signed in to change notification settings - Fork 2k
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
preflight response does not include PATCH in the "Access-Control-Allow-Methods header" #1193
Comments
@salahlalami if it is a valid issue I would like to work on this! |
Hi @mohitparmar1 i have a cloned copy of the code on my local machine there i have an admin user made through setup file when i update the profile in there then i am not seeing any error but in the deployed code there is indeed an error.It's my first time working on an open source project.Could you guide why this is happening? |
Yes, but the changes are not updating there, suppose someone changed their last name it is not showing new changes after the update |
Here is my name before change |
I saw your PR you added the method parameter to the cors middleware it is necessary for patch.I am new to open source as i could understand you changed just one line is that correct or you made some other changes? |
Describe the bug
The PATCH method triggers a CORS error when attempting to update the profile. The preflight response does not include PATCH in the Access-Control-Allow-Methods header.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The PATCH request should be allowed, and the update should proceed without a CORS error.
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: