nginx 跨域
Last updated on January 17, 2025 am
🧙 Questions
☄️ Ideas
#允许跨域
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
local / {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Methods *;
}
#允许跨域
🔗 Links
nginx 跨域
https://ispong.isxcode.com/vue/nginx/nginx 跨域/