How to fix CSS loading forever, and what causes the issue (Now Fixed. Left up just in case.)

How to fix CSS loading forever, and what causes the issue (Now Fixed. Left up just in case.)

17

28

I've seen some people asking what's up with the CSS editor never loading, so I'm going to give some answers to the best of my ability.


First, an explanation of the problem (skip to the bottom for the solution).

To put it simply, JanitorAI isn't trusting the site that is used to import your CSS. Looking in the console, you can see this error message.
You can see that a script is failing to load due to CSP (Content Security Policy). This script is from jsdelivr, which is most commonly used to load code. The links in the middle of the error message are those that are trusted: as you can see, jsdelivr is not there.


What is CSP?

CSP (Content Security Policy) is used to prevent attacks by blocking all unapproved external sources. This is a browser security feature found in most browsers. By blocking external sources, it helps mitigate and block attacks. It is a very simple and quite effective tool


How to fix.

Now that that's out of the way the important part: how to fix this issue? To put it bluntly, you can't: only the JAI team can. However, we as users can bypass this issue. How? By temporarily disabling CSP. I am currently using the extension "Disable Content-Security-Policy" (on chrome). By temporarily disabling CSP the editor will be able to load.


If you have any questions after this or want clarification on anything, please feel free to leave a message with your comment or concern. And if you know anything more accurate than what I can deduce by looking at the console errors, please let me know.

proxy allowed

Published chats

0

comments

Leave a comment or feedback for the creator ❤️