nk2028 / tshet-uinh-autoderiver

An automatic extrapolation tool based on the Tshet-uinh phonological system
https://nk2028.shn.hk/tshet-uinh-autoderiver/
Creative Commons Zero v1.0 Universal
41 stars 17 forks source link

CORS broken #27

Closed syimyuzya closed 1 month ago

syimyuzya commented 1 month ago

(Note: The whole site is currently deployed on GH Pages to get around it.)

My Firefox showed messages like this:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://qieyun-autoderiver-1305783649.file.myqcloud.com/assets/index-BP6mtVv0.css. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

(PS I forgot to look into the request/response headers. If you need it, I can try deploying the COS version again to see it)

What works:

What breaks:

My suspection on what could possibly cause the problem:

ayaka14732 commented 1 month ago

I will fix it today after my work!

ayaka14732 commented 1 month ago

Fixed in https://github.com/nk2028/tshet-uinh-autoderiver/commit/7f0c0c0eb81ec559951e2f6dd1f1104a3f6efee0. Specifically, I created a new Tencent Cloud COS bucket to drop the old qieyun- prefix, and added CORS settings for the new bucket.

ayaka14732 commented 1 month ago

Also deleted the old bucket as it's no longer used.