benjamine / jsondiffpatch

Diff & patch JavaScript objects
MIT License
4.86k stars 473 forks source link

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

Open andreasulmer opened 5 years ago

andreasulmer commented 5 years ago

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?