How do I SET a Cookie (header) with XMLHttpRequest in JavaScript?

前端 未结 5 776
一个人的身影
一个人的身影 2020-11-30 00:43

I\'m trying to set a Cookie in a XSS request using XMLHttpRequest.

I found the XMLHttpRequest Specification, and section 4.6.2-5 does seem to suggest that setting Co

5条回答
  •  粉色の甜心
    2020-11-30 01:14

    https://developer.mozilla.org/En/Server-Side_Access_Control

    allow you origin and also to set the Access-Control-Allow-Credentials HTTP header to true

提交回复
热议问题