Reason: Did not find method in CORS header 'Access-Control-Allow-Methods'
Reason
Reason: Did not find method in CORS header 'Access-Control-Allow-Methods'
In this article
What went wrong?
The HTTP method being used by theCORS request is not included in thelist of methods specified by the response'sAccess-Control-Allow-Methods header. This header specifies acomma-delimited list of the HTTP methods which may be used when using CORS to accessthe URL specified in the request; if the request is using any other method, this erroroccurs.
For example, if the response includes:
http
Access-Control-Allow-Methods: GET,HEAD,POSTTrying to use aPUT request will fail with this error.
Make sure your code only uses the permitted HTTP methods when accessing the service.
Note:If the server includes any unrecognized or undefined method names in itsAccess-Control-Allow-methods header, a different error occurs:Reason: invalid token 'xyz' in CORS header 'Access-Control-Allow-Methods'.