CORSMiddleware does not respect methods defined for route #1582
Unanswered
slavugan
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For preflight request
CORSMiddleware
adds all available methods, GET, POST, PUT etc... in the Access-Control-Allow-Methods header , but when only GET method is defined for a route, there should not be other methods in Access-Control-Allow-Methods header as they are actually not allowed.There are several issues that can be related to this one as matched router is not known at this point:
#1286
#685
Beta Was this translation helpful? Give feedback.
All reactions