For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I'm having this error on my console while trying to preview my Post Purchase Extension that I can't understand :
Refused to apply style from 'https://testingstore-geniuswave.myshopify.com/private_access_tokens?id=e42226b6f1687160fb3a07e6b80a5...' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Hi GeniusWave,
This error usually occurs when the server responds with the wrong MIME type (in your case 'text/html') for a CSS file. The server should respond with 'text/css' for CSS files.
There a couple reasons why this might be happening:
Here's how you can troubleshoot the problem:
Try the above and let us know if you're still seeing issues. Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam, I am experiencing the same issues as the OP. The reason according to my SemRush report is 404 error. Where would I find the URL that is causing the 404 error in the CDN. We do not have any external CSS files.