yanzai / goindex

Goindex 修改版,支持多盘、搜索、分页加载等功能
https://yanzai-goindex.java.workers.dev
333 stars 260 forks source link

Add CORS for files #3

Closed churongcon closed 4 years ago

churongcon commented 4 years ago

Hello, How to add CORS for files I want to embed file but File has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header

yanzai commented 4 years ago

Upgrade to version _4.23 and set enable_cors_file_down to true, then you can make it.

https://github.com/yanzai/goindex/blob/f7130d656a1a35240dbeb78da7fcfc142de0fd62/index.js#L51