Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决CORS跨域问题 | 李斌的技术博客 #256

Open
jefferyjob opened this issue Oct 9, 2024 · 0 comments
Open

解决CORS跨域问题 | 李斌的技术博客 #256

jefferyjob opened this issue Oct 9, 2024 · 0 comments

Comments

@jefferyjob
Copy link
Member

https://blog.mailjob.net/posts/2084750826.html

CORS问题 CORS 跨域问题的产生原因 CORS(Cross-Origin Resource Sharing)是一种机制,它允许受限的资源从一个域(源)请求来自不同域(源)的资源。现代浏览器出于安全考虑,限制了网页的 AJAX 请求,禁止前端脚本访问不同域的资源。这种安全策略称为同源策略(Same-Origin Policy),它限制了不同源(包括协议、域名和端口)的交互。CORS 的产生是为

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant