Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Content Security Policy #37

Open
pauldube opened this issue Aug 12, 2021 · 1 comment
Open

Support for Content Security Policy #37

pauldube opened this issue Aug 12, 2021 · 1 comment

Comments

@pauldube
Copy link

Perfect-DateTimePicker is really great but it does not support Content Security Policy.
When I restrict script-src to 'self' I get the following Javascript error when clicking on a day in the calendar:

Refused to execute inline event handler because it violates the following Content Security Policy directive

Is it possible to convert the component to support Content-Security-Policy and, if so, how hard would it be ?

@pauldube
Copy link
Author

I found how to fix.

What's more: I have code for new View modes to support AM/PM.
If you wish to get the code, please let me know so I can contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant