CORS: preflight_response: cookie is not used here#513
CORS: preflight_response: cookie is not used here#513lovelydinosaur merged 1 commit intoKludex:masterfrom
Conversation
|
I'm not an expert on how the standards bodies expect OPTIONS preflight requests and responses to behave, but it does seem that they should not contain (or set) cookies. From the perspective of |
|
Sorry - I don't understand the question. |
Yes.
Have not checked - but that's the question mainly: is it required to handle/check cookies there? |
|
@blueyed Have solved this problem? app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_headers=["*"],
allow_methods=["*"],
)I used this config, but still can only recevie |
Ref: #510 (comment)
It gets only called for "OPTIONS", but strictly speaking we should maybe check that there is no cookie before?! https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests