-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
About javascript: void (0); #2887
Comments
CodeIgniter 4.0.2 |
Wrong: Change to: |
Sorry typo, |
how to handle it?
in codeigniter version 3 for example I use
<a href="#" data-menu="menu-main"></a>
it functions as it should not refresh the page.
But in codeigniter version 4 lines of code
href = "#"
refreshes the page. so I changed it to<a href="javascript"void(0)" data-menu="menu-main"></a>
to function without having to refresh the page.But the problem is javascript: void (0); violates HTTPS Content Security Policy on CSP-enabled (Content Security Policy).
The text was updated successfully, but these errors were encountered: