Sekai-World / sekai-viewer

Web Database Viewer of Project Sekai
https://sekai.best
GNU General Public License v3.0
328 stars 38 forks source link

[BUG]Asset Viewer 'Access-Control-Allow-Origin' missing #397

Closed hedw1gP closed 2 years ago

hedw1gP commented 2 years ago

Describe the bug

Items won't appear in file browser.

The bug occurs on Sekai Viewer 1.4.1 when using Firefox 101.0.1 and Google Chrome 102.0.5005.115.

Console outputs:

Access to XMLHttpRequest at 'https://minio.dnaroma.eu/sekai-assets/?list-type=2&delimiter=%2F&prefix=%2F&max-keys=500' from origin 'https://sekai.best' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

To Reproduce

  1. Go to 'sekai.best' with Latest Firefox/Chrome.
  2. Click on 'Asset Viewer'
  3. See error at Console. If on Firefox, error occurs immediately; If on Chrome, you might need to wait a while.

Expected behavior

File list would appear.

Browser (please complete the following information):

Possible cause and/or solution

Check https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

dnaroma commented 2 years ago

Fixed, open if still problems