I followed this great tutorial on how to implement the fullCalendar library to a client’s site. The tutorial leaves me with a fully built feature. I need to move it over to production and I am running into CORB issues. My approach was to swap out the localhost script for a link to the exact same file that is on a github repo.
Here is the CORB error. I was trying to get around that by adding all the code into the webpage instead of hosting it on my github.
The code works as written in my editor / local env. I’m not too familiar with Typescript and this kind of syntax yet, so I am not sure where the fix is for that )
Here is the link to the page:
So, very interesting-
Githubusercontent serves only this CORS response header;
While CDNs like jsDeliver, which I use for Sygnal Attributes, serves both of these;
Access-Control-Allow-Origin: * Cross-Origin-Resource-Policy: cross-origin
My suspicion is that modern browsers may be pickier, and picky specifically on certain file types that they don’t trust.
I’d sort out that design detail first, and then see if your CORB issue goes away with that correction.
If not, it may just be that Githubusercontent is obsolete, and you might switch to jsDelivr to serve your content ( your Github repo needs to be public ). Or you could serve it through a separate hosting env like Netlify which can also publish from Github private repos.
Thanks Michael for sticking with this and helping. I found a solution: