DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Cookie Consent banner error

 5 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 34
Growing Member
New Poster
New Poster
Congrats on posting!

I am wanting to enable the cookie consent banner. I enabled the setting in the privacy section of Site Settings. However when the website loads I am not getting the banner. When checking in the Developer console I am getting the following error;

"Refused to apply style from ... because its MIME type ('text/javascript') is not a supported stylesheet MIME type, and strict MIME checking is enabled."

Is anyone able to provide some assistance with this issue?

Veteran Member
Posts: 370
Veteran Member
5 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
5 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

Hi!

What DNN version you're currently on?

Do you've any errors in the admin logs from the Persona bar?

Can you share an screenshot of the privacy page configuration from your website?

Thanks.

 

Growing Member
Posts: 65
Growing Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
5 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

We have seen this a few times lately (Apr/May 2026) on recent versions of DNN. We never found the cause, but simply restarting the application (or in IIS restarting the app pool) fixed this. If that does not fix it and the problem persists, can you tell us more about the site? Have you double checked your MIME Types? We maintain a verified/accurate list of the valid MIME types that are common in (our) DNN work.

Growing Member
Posts: 34
Growing Member
New Poster
New Poster
Congrats on posting!

So DNN is on version 10.02.01.

Restarting the appliation pool didn't fix it.

Looked at the MIME type settings. So in the Plesk console under IIS Settings in the MIME type box it shows application/javascript .js, from the website link you gave me it looks like it is supposed to be text/javascript .js, don't know if I should change this or not, not sure what affect it would have.

However when I look in the webconfig file under the section for StaticContent there is a line for remove fileExtension js then the line after it says mimemap fileExtension = js with mimeType of text/javascript

Not sure if this helps?

Growing Member
Posts: 34
Growing Member
New Poster
New Poster
Congrats on posting!

I have a new update now. I updated staging site to the latest version of DNN and the banner started working on the staging site right away. Looks like that was all I needed.

Thanks everyone.

Veteran Member
Posts: 370
Veteran Member
5 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
5 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

Thanks for sharing your solution!

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved