Cross Domain Web Worker?

后端 未结 4 1812
孤独总比滥情好
孤独总比滥情好 2021-02-05 10:51

I have https://domain1.com (domain1) and https://domain2.com (domain2).

Domain2 serves a page containing javascript with this header:

"Access-Control-         


        
4条回答
  •  忘掉有多难
    2021-02-05 11:26

    Do you have allow methods set?

    Try adding this to your header:

    Access-Control-Allow-Methods: POST, GET, OPTIONS
    

提交回复
热议问题