gpt4 book ai didi

ajax - 如何让 Access-Control-Allow-Origin 工作?

转载 作者:行者123 更新时间:2023-12-04 17:58:10 26 4
gpt4 key购买 nike

如何让 Access-Control-Allow-Origin 工作?

Access-Control-Allow-Origin: *

我的问题:
  • 如何让 Access-Control-Allow-Origin 工作?
  • 所有主流浏览器都支持 Access-Control-Allow-Origin 吗?

  • 谢谢你。

    最佳答案

    查看 Nicholos C. Zakas intro .

    There is a lot of solid support for cross-domain Ajax in modern web browsers, yet most developers are still unaware of this powerful capability. Usage requires just a little bit of extra JavaScript work and a little extra server-side work to ensure that the correct headers are being sent. IE8’s implementation lags a bit behind the others in terms of allowing advanced requests and credentialed requests, but hopefully support for CORS will continue to improve.

    关于ajax - 如何让 Access-Control-Allow-Origin 工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4272246/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com