-> 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?
repro:
raw urls
in Live Demo-> 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
?