国产精品黄页网在线观看,欧美日韩国产综合新一区,国产欧美高清精品一区2,久久国产乱子伦免电影

thinkphp6 寶塔 nginx 實(shí)現(xiàn)跨域問(wèn)題

程序猿 2022-01-19 09:29:16 2840瀏覽 加載中

費(fèi)話不多說(shuō)直接上代碼

  add_header 'Access-Control-Allow-Origin' '*';
  add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type';
  add_header 'Access-Control-Allow-Credentials' 'true';
  add_header 'Access-Control-Allow-Methods' 'OPTION, POST, GET';

打開寶塔的網(wǎng)站配置面板,如圖加到所在位置

image.png

標(biāo)簽: thinkphp6 nginx 跨域
最后修改:2025-10-29 14:31:13

非特殊說(shuō)明,本博所有文章均為博主原創(chuàng)。