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

Update request.js #296

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

Update request.js #296

wants to merge 2 commits into from

Commits on Aug 11, 2021

  1. Update request.js

    When running the tests in a browser with a PATCH type request, "PATCH" method is sent in all lower case letters. When the request uses CORS, the preflight OPTIONS is triggered before the actual request.  This request is sent with the following header: "Access-Control-Request-Method = patch" instead of "Access-Control-Request-Method = PATCH". This causes the "Access-Control-Allow-Methods = GET, POST, OPTIONS, PUT, PATCH, DELETE" to fail, because the expected method is "PATH" instead of "path". 
    For further reading please refer to this stack overflow post: https://stackoverflow.com/questions/55250297/problem-with-patch-method-and-cors-preflight-request?rq=1
    ngrecco authored Aug 11, 2021
    Configuration menu
    Copy the full SHA
    e8e788f View commit details
    Browse the repository at this point in the history
  2. Update request.js

    ngrecco authored Aug 11, 2021
    Configuration menu
    Copy the full SHA
    49b9c8d View commit details
    Browse the repository at this point in the history