Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bibliothèque nationale de France (Gallica): missing CORS headers for some requests #12

Open
sammeltassen opened this issue Apr 24, 2023 · 1 comment

Comments

@sammeltassen
Copy link
Member

Example map:

From Chrome console:

Access to image at 'https://gallica.bnf.fr/iiif/ark:/12148/btv1b531700621/f2/14336,12288,1924,2048/241,/0/native.jpg' from origin 'https://viewer.allmaps.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The following header is present on the response:

Access-Control-Allow-Origin: *

But perhaps not always returned? Or sometimes there's no response at all?

(Potential relation to #10 if IIPServer is used)

@bertspaan
Copy link
Member

Trying out the above Viewer link with Firefox.

Some images work, some return a 500 Internal Server Error, some return without CORS headers. Some examples:

Can't reproduce these errors: when opening them in a browser tab, all images load fine, with the correct CORS headers. Maybe some caching issue on BNF's side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants