search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

CSP violation issues

Asked by Anonymous
1 month ago.

Hi!

I’m trying to get the Calendar to work in our website. But it is creating a default stylesheet and that clashes with our csp headers.

I read on the forums on how to prevent that from happening here: https://forums.daypilot.org/question/5693/daypilot-default-css-styles

However, that is 3 years old and it doesn’t seem to be working like that anymore. Or maybe I’m just doing something stupid… dunno.

Attached is my attempt and the csp issue.

Answer posted by Dan Letecky [DayPilot]
1 month ago.

The latest release (2025.3.6564) now detects the nonce used by scripts and stylesheets on the page and uses it when registering the built-in stylesheet. You shouldn’t see this error anymore.

If you use the same nonce value for styles and scripts, you can simply add it to the <script> that imports DayPilot:

<script src="daypilot-all.min.js" nonce="1234"></script>
Comment posted by Anonymous
1 month ago.

Thanks! I’ll try that

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.