bodleian / iiif-manifest-editor

The Bodleian's IIIF Manifest Editor
http://dmt.bodleian.ox.ac.uk/
MIT License
82 stars 22 forks source link

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

Open jovi-juan opened 3 years ago

jovi-juan commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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