Skip to content

Conversation

@OS-martacarlos
Copy link

Issue number: resolves internal

What is the current behavior?

  • when adding style-src 'self'; to CSP rules input, input-otp, text-area and card-content would break, since their styles are scoped
  • when adding connect-src 'self' blob: ; style-src 'self'; to CSP rules datetime would break for the ionic theme , since it does not use ionicons for the next and previous month buttons

What is the new behavior?

  • input, input-otp, text-area and card-content: switch from scoped to shadow: true
  • datetime: creates an ObjectURL for ionic theme specific icons
    • this is for testing purposes, a more robust solution (involving revoking these URLs) will need to be implemented

Does this introduce a breaking change?

  • Yes
  • No

so all components work with CSP rules
@OS-martacarlos OS-martacarlos added the package: core @ionic/core package label Sep 4, 2025
@vercel
Copy link

vercel bot commented Sep 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ionic-framework Ready Ready Preview Comment Sep 4, 2025 2:48pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants