Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Secure execution in chrome extensions #8777

@dkaigorodov

Description

@dkaigorodov

The latest AngularJS 1.3 beta 19 uses eval. This is prohibited by default and not recommended by security reason in chrome extensions.

How to fix the issue without allowing evals? https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing-eval

Error message:

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' chrome-extension-resource:".

Stack trace:

angular.js:1011
csp angular.js:1011
(anonymous function) angular.js:23556

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions