• When having both plugins together, there’s this error:

    Refused to apply style from ‘https://wordpress-575834-3536436.cloudwaysapps.com/#’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    When deactivating either the header security or cookie plugin – the error disappears.

    I’ve found that this line in the HTACCESS clashes with Complianz:

    Header always set X-Content-Type-Options “nosniff”

    I’ve currently deactivated the Header Security plugin and using the other htaccess settings it writes (manually written in the htaccess).

    Is this something you can fix? Or is there a better workaround than what I did?

    Thanks

    • This topic was modified 1 year, 5 months ago by idorann.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rimas

    (@erku)

    The right thing to do would be to make sure that all CSS stylesheets you use in your website indicate their MIME type correctly (text/css).

    Thread Starter idorann

    (@idorann)

    thank you for the reply Rimas

    can you please point me in the direction of how to do that?

    Plugin Author Andrea Ferro

    (@unicorn03)

    Hi @idorann, as suggested by @erku check that the MIME type is (text/css)

    To check the MIME type of a file or resource in the context of the problem you are addressing, you can follow these steps:

    1. Open your website in the browser.
    2. Open the browser’s development tools. You can usually do this by right-clicking on the page and selecting “Inspect Element” or “Element” (the name may vary depending on the browser).
    3. Go to the “Network” tab in the development tools. You may need to click on an icon such as a circular arrow to start recording network requests.
    4. Reload the page to register network requests.
    5. Look for the request for the CSS stylesheet that is generating the error. It may appear as a file with a “.css” extension.
    6. Click on the request to open the request details.
    7. Look for the “Headers” or “Headers” section in the request details.
    8. Within the headers, look for the value of the “Content-Type” or “Content Type” field. This value will indicate the MIME type of the style sheet.

    Check if the MIME type value of the style sheet is set correctly to “text/css”. If it shows “text/html” instead, then there is a problem that the MIME type is incorrect and needs to be fixed.

    If you have any other doubts or need help I am here to help you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clash with Complianz cookie banner’ is closed to new replies.