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

Creating a new manifest and adding a canvas via image or info.json returns an error #58

Open
jovi-juan opened this issue Apr 8, 2021 · 3 comments

Comments

@jovi-juan
Copy link

Hi,
I've been trying to add an image to a new manifest via the tool and I keep getting a "URI is not valid" error.
I've tried it as an image (level0):
https://philippinestudies.uk/mapping/images/iiif/manila-panel1/full/full/0/default.jpg

And as an info.json file:
https://philippinestudies.uk/mapping/images/iiif/manila-panel1/info.json
http://free.iiifhosting.com/iiif/94ed082cc0af882a704b6cac380dde873d1830157d383e1a02bb089adf16999e/info.json

Yet it works as a level1 image:
https://free.iiifhosting.com/iiif/94ed082cc0af882a704b6cac380dde873d1830157d383e1a02bb089adf16999e/full/full/0/default.jpg

Manifest here:
https://philippinestudies.uk/mapping/iiif-manifests/manila-panel1/manifest.json

I was wondering what was wrong with the info.json files above and what's wrong with the level0 image.

Can you let me know?

Thanks!

@jovi-juan
Copy link
Author

Strangely, the tool won't open the manifest either now:
https://philippinestudies.uk/mapping/iiif-manifests/manila-panel1/manifest.json

Screen Shot 2021-04-08 at 10 43 38 am
Screen Shot 2021-04-08 at 10 31 58 am

@schwemmer
Copy link
Collaborator

Hi,

When you open the developer console, you can see what causes the error (missing CORS header):

Bildschirmfoto 2021-04-08 um 13 50 57

You can read more about implementing CORS here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Basically your server needs to set a header Access-Control-Allow-Origin: *. Can you implement this and then try again? This is to solve the manifest not loading. It will most likely also solve the problem with the image URIs and info.json

@jovi-juan
Copy link
Author

Ah, ok. Will try this. Thanks for your help!

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