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

Refused to apply inline style because it violates the following Content Security Policy directive #1142

Closed
2 tasks done
cerenbattal opened this issue Mar 6, 2024 · 2 comments
Labels
type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed

Comments

@cerenbattal
Copy link

Prerequisites

  • I have not leaked any internal company information.
  • I have not posted internal links or code snippets.

What happened?

We are building our application with React, Webpack, using Client Side Rendering (CSR), and MiniWeb as a server. We faced this issue in the console:

image

We found out that the problem occurs on ix-icons loader.

We examined the following links and we could not find a solution for CSR because we cannot use nonce values:
#171
https://ix.siemens.io/docs/installation/csp

We had the same issue previously and when we added the hash values that we got from the error messages to the Content Security Policy header in our server config, the problem was solved but the possibilities of these hash values are infinite. We found out that when we try to use a new iX component on the UI, we get this problem again, as you can see in the first screenshot.

Could you please share with us a solution to maintain this problem?
Thank you.

What type of frontend frameware are you seeing the problem on?

React

Which version of iX do you use?

V2.1.0

Code to produce this issue.

On ix-icon loader files.
@cerenbattal cerenbattal added the triage We discuss this topic in our internal weekly label Mar 6, 2024
@matthiashader matthiashader added type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed and removed triage We discuss this topic in our internal weekly labels Mar 19, 2024
Copy link
Contributor

github-actions bot commented Mar 19, 2024

🤖 Hello @cerenbattal

Your issue will be analyzed and is part of our internal workflow.
To get informed about our workflow please checkout the Contributing Guidelines

JIRA: IX-1015

@matthiashader
Copy link
Collaborator

matthiashader commented Aug 22, 2024

Should be fixed with the latest version of ix-icons. https://ix.siemens.io/docs/installation/csp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed
Projects
None yet
Development

No branches or pull requests

2 participants