CORS when no Origin #2370
Unanswered
adsko
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
-
Hello,
When CORS Middleware do handle a request, there is a check, if
Origin
isNone
:Based on #810 MDN informs
Origin
need to set in order to return correct headers but I can not find an information that it's a requirement. Only that the browser will send it when CORS request.To be precise, it is a little bit problematic when your application is behind some kind of cache layer, like CDN. In that case, when you do enter site with
GET
request (simple page open in the browser),Origin
is not set and the layer do cache missing CORS headers.Based on this, I hope we can:
Origin
headerOrigin
header. That way, most cache layers should cache the response properly.Beta Was this translation helpful? Give feedback.
All reactions