wickedest / Mergely

Merge and diff documents online
http://www.mergely.com
Other
1.18k stars 228 forks source link

Update ajax.html #145

Closed ControlBoy38 closed 3 years ago

wickedest commented 3 years ago

@ControlBoy38 - thanks for raising the issues about the examples not working. The issue appears to be CORS related:

Access to XMLHttpRequest at 'file:///home/jamie/mergely/Mergely/examples/lhs.txt' from origin 'null' 
has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: 
http, data, chrome, chrome-extension, chrome-untrusted, https.

I'll take a look into them. Chrome made a tighter CORS policy not too long ago, so I suspect that's what happened. I always knew those serverless examples were on borrowed time.

Unfortunately, the PRs you submitted will not fix the problem. Those examples require the webpacked version that gets built into lib.