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

Pagination innerHTML setter violates Content Security Policy #7459

Closed
3 of 4 tasks
cherie-xf opened this issue Apr 11, 2024 · 1 comment
Closed
3 of 4 tasks

Pagination innerHTML setter violates Content Security Policy #7459

cherie-xf opened this issue Apr 11, 2024 · 1 comment

Comments

@cherie-xf
Copy link

Clear and concise description of the problem

Our project has issue when set up the Contnet Security Policy.
The Swiper pagination violates the CSP directive: control the data passed to DOM XSS sink functions, like Element.innerHTML setter

image

Suggested solution

could createElement and appendChild

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

  • I'm willing to open a PR
@nolimits4web
Copy link
Owner

Updates your CSP or use custom pagination instead

Repository owner locked and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants