-
-
Notifications
You must be signed in to change notification settings - Fork 774
[Bug]: Incorrect load for cookie consent resource #7055
Copy link
Copy link
Closed
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
I found this little issue. When you anable cookie consent popup, site is trying to load a js file as stylesheet file.
Exactly this file
| this.clientResourceController.RegisterStylesheet("~/js/dnn.cookieconsent.js"); |
This line
this.clientResourceController.RegisterStylesheet("~/js/dnn.cookieconsent.js");
Steps to reproduce?
Enable cookie consent popup in website settings.
Current Behavior
You will see the error
Refused to apply style from 'https://cpn.neudigitalmedia.com/js/dnn.cookieconsent.js?cdv=176' because its MIME type ('application/javascript') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Expected Behavior
You should see popup with cookies consent text
Relevant log output
Anything else?
No response
Affected Versions
10.2.2 (latest v10 release)
What browsers are you seeing the problem on?
Chrome
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable