< 返回技术文档列表

nginx 图片跨域问题

发布时间:2022-11-17 23:00:07⊙投诉举报

location ~* .(html|htm|shtml|zip|rar|doc|docx|xls|xlsx|ppt|ppts|gif|jpg|jpeg|png|bmp|swf|ico|js|css)$ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
}


/template/Home/Zkeys/PC/Static