Does CORS and XSS have any connection?

前端 未结 3 1014
借酒劲吻你
借酒劲吻你 2021-02-08 05:47

Cross-site scripting (XSS) is mentioned in the Wikipedia page for CORS. But I don\'t see how they are related. What\'s the connection between CORS and XSS?

3条回答
  •  迷失自我
    2021-02-08 06:28

    For example: You can inject your js code, that allows you to steal users cookies, into some page (xss). You can do this thanks to CORS.

    Hope, that I am not false. Maybe someone will give you better answer.

提交回复
热议问题