Are there any browsers that set the origin header to “null” for privacy-sensitive contexts?

后端 未结 4 727
故里飘歌
故里飘歌 2020-12-01 01:21

The Origin spec indicates that the Origin header may be set to \"null\". This is typically done when the request is coming from a file on a user\'s computer rat

4条回答
  •  失恋的感觉
    2020-12-01 02:12

    I have similar situation, doing redirects in ajax from domain A->B and finally back to A. As origin is null, CORS fails.

    On domain A I set Access-Control-Allow-Origin: null, which seems to work, will need to test more.

提交回复
热议问题