Handle inline style for Content Security Policy #85

Closed
opened 2026-01-29 17:31:18 +00:00 by claunia · 1 comment
Owner

Originally created by @thudugala on GitHub (Apr 20, 2021).

Some components use inline style, for example RadzenDropDown set style directly. For the browser not to block this action you would need to set Content Security Policy to "script-src 'unsafe-inline'" which is bad security practice.

Can these be moved to css files ?

Originally created by @thudugala on GitHub (Apr 20, 2021). Some components use inline style, for example RadzenDropDown set style directly. For the browser not to block this action you would need to set Content Security Policy to "script-src 'unsafe-inline'" which is bad security practice. Can these be moved to css files ?
Author
Owner

@akorchev commented on GitHub (Apr 26, 2021):

Unfortunately this affects too many components and isn't easy to do everywhere in CSS files.

@akorchev commented on GitHub (Apr 26, 2021): Unfortunately this affects too many components and isn't easy to do everywhere in CSS files.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#85