CORS issue

I am getting a CORS issue.

Access to script at 'https://zimjs.org/cdn/019/zim_pizzazz' from origin 'http://127.0.0.1:5501' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error
app.js:2 GET https://zimjs.org/cdn/019/zim_pizzazz net::ERR_FAILED 415 (Unsupported Media Type)Understand this error
index.html:1 Access to script at 'https://zimjs.org/cdn/canvas-latex.js' from origin 'http://127.0.0.1:5501' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error
app.js:3 GET https://zimjs.org/cdn/canvas-latex.js net::ERR_FAILED 415 (Unsupported Media Type)

That is odd - I do not think anyone else is getting CORS errors. We have the cdn set to accept all domains. Can you show us a screenshot of the way you call the files? Did they work before but now are causing problems? Did you try on a different computer?

It was working on Thursday and now it works again, not sure what the issue was?

Okay - well, let us know if it happens again. Glad it is working.

Hi @mathtechie - we have adjusted the ZIM Editor to use only virtual urls to the php pages so starting with / rather than absolute urls starting with https://zimjs.com/. The error you saw seemed to come when using zimjs.org and then it was calling the php with a .com. Even so, we did not see an error when using the Editor with .org. But maybe we did not try to adjust files which would run the php in question. So hopefully that fixes the Editor for anyone using .org - which was not really intended to be used for general ZIM purposes - only the CDN and ZIM Kids. The .org will be maintained now as it calls the php.