nginx 配置允许图片跨域

chat

nginx 配置允许 图片 跨域

location ~* \.(gif|jpg|jpeg|png|bmp|swf)$ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
}

版权声明:
作者:东明兄
链接:https://blog.crazyming.com/note/1465/
来源:CrazyMing
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
nginx 配置允许图片跨域
nginx 配置允许 图片 跨域
<<上一篇
下一篇>>
chat