Cloudflare seems to be blocking .ts files
rzuppur opened this issue · 7 comments
Scripter is broken for me, loading spinner never stops and UI is frozen. Console has this and more similar errors for different .ts files
scripter.rsms.me/:1 Access to fetch at 'https://www.cloudflare-terms-of-service-abuse.com/stream.mp4' (redirected from 'https://scripter.rsms.me/lib.dom.d.ts?v=+EviNZmp2POY3vxI1MwvwLsktEk') from origin 'https://scripter.rsms.me' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I'm guessing since ts
is also a video transport stream file extension, some dumb filter at Cloudflare thinks you are serving video and blocks the request?
I disabled Cloudflare caching. They had severe performance issues. The SSL issue was a bug on GitHub’s end and should be fixed now.
I'm imagining a fix being to rename all .ts files that are loaded at runtime to .ts.txt and making sure they are properly recognized as TypeScript by Monaco in Scripter.
Seems to be working, thanks! Good to know that this plugin is still being maintained
:•)