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

Bug(scope):Message format compile throwing unsafe eval errors #796

Open
1 task done
bh2989 opened this issue Sep 16, 2024 · 1 comment
Open
1 task done

Bug(scope):Message format compile throwing unsafe eval errors #796

bh2989 opened this issue Sep 16, 2024 · 1 comment
Labels
Missing information The issue is missing information, it won't be addressed until added.

Comments

@bh2989
Copy link

bh2989 commented Sep 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) are the source of the bug?

MessageFormat

Is this a regression?

Yes

Current behavior

We are trying to remove 'unsafe-eval' from CSP, getting below error.
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'

image

Expected behavior

There should not be error after removing unsafe-eval from CSP as we handled through nonce

Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.

#364

Transloco Config

No response

Please provide the environment you discovered this bug in

Transloco: 
Angular: 
Node: 
Package Manager: 
OS:

Browser

No response

Additional context

No response

I would like to make a pull request for this bug

Yes 🚀

@shaharkazaz
Copy link
Collaborator

@bh2989 Please provide the environment information.

@shaharkazaz shaharkazaz added the Missing information The issue is missing information, it won't be addressed until added. label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing information The issue is missing information, it won't be addressed until added.
Projects
None yet
Development

No branches or pull requests

2 participants