Overview

When distributing IIIF manifests using the Omeka S IIIF Server module, the following CORS error occurred in external viewers.

Accesstofetchat'https://xxx/iiif/2/09fd29d5-8497-4def-a64d-ca104284f90d/manifest'fromorigin'https://universalviewer.io'hasbeenblockedbyCORSpolicy:No'Access-Control-Allow-Origin'headerispresentontherequestedresource.Ifanopaqueresponseservesyourneeds,settherequest'smodeto'no-cors'tofetchtheresourcewithCORSdisabled.

This article introduces measures to address CORS errors in Omeka S.

Solution

https://github.com/Daniel-KM/Omeka-S-module-IiifServer?tab=readme-ov-file#cors-cross-origin-resource-sharing

The following was added.

SHHHeeeetFaaaEidddnleeeverrrsAMsssPaeeePttttLcIIIIhfffC>EEEAmmmTpppItttOyyyN_AAAEcccNcccVeeesss"sssp---rCCCoooodnnnutttcrrrtoooilllo---nAAA"llllllooowww---OHMreeiatgdhieonrdss"*"""oGrEiTg,inP,OSxT-"requested-with,content-type"

This resolved the CORS issue.

Summary

I hope this is helpful when using the Omeka S IIIF Server module and similar tools.