buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 401 forks source link

怎么解决图片上传的跨域问题? #207

Open franklu918 opened 6 years ago

franklu918 commented 6 years ago

zimg.lua中配置: headers = 'Access-Control-Allow-Origin: *' 不起作用。response header里面没包含该属性

byszhao commented 5 years ago

同问~

chimon89 commented 5 years ago

我是nginx反代,然后 add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers "content-type";