jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Live Demo: `raw urls` example broken due to CORS

Open andreasulmer opened this issue 7 years ago • 0 comments

repro:

-> editors show: parse error: SyntaxError: Unexpected end of JSON input -> console error: Access to XMLHttpRequest at 'https://rawgithub.com/benjamine/JsonDiffPatch/master/package.json' from origin 'https://benjamine.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can this be fixed by adding requesting CORS in headers when fetching package.json?

andreasulmer avatar Feb 04 '19 19:02 andreasulmer