您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

nginx 配置ajax跨域访问php

2025/12/14 22:28:59发布20次查看
server { add_header 'access-control-allow-origin' '*'; add_header 'access-control-allow-credentials' 'true'; add_header 'access-control-allow-headers' 'authorization,content-type,accept,origin,user-agent,dnt,cache-control,x-mx-reqtoken'; add_header 'access-control-allow-methods' 'get, post, options, put, delete'; add_header ps 1; location / { }}
参考:
    http://stackoverflow.com/questions/18450310/nginx-add-header-not-working
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product