Closed LinkofHyrule89 closed 3 years ago
I'm trying to use this theme but it doesn't appear to be working. https://paste.ee/p/4AICM Am I doing something wrong?
It appears any cross-site directives like @import
or url()
will not work with insertCSS()
, at least in this case (probably due to iframe and CORS). It should be working now in 1.4.1.
Seems to mostly work. It's still blocking https://gibbu.github.io/BetterDiscord-Themes/FrostedGlass/assets/discord.svg for some reason not sure why though.
Discord's Content-Security-Policy
forbids loading images/styles from external sites (with a few exceptions). In order for these styles to function correctly the CSP header must be modified. This may be a very minor security risk (shouldn't pose much of a threat since this is only css and images) so I've made it an optional setting. (fyi, BeautifulDiscord also modifies the CSP header in the same way.)
Awesome! I figured it was doing that. I'm impressed with how quickly you get stuff fixed thanks for the hard work.
I like to use BeautifulDiscord but that doesn't seem like it will work with this PWA so it would be great if there was an option to just have custom CSS integrated into the PWA.