Skip to content

Use of new Function violates Chrome App CSP #487

Closed
@mendelk

Description

@mendelk

In this commit, this line was added:

customScheme: new Function('node', ''),

However, this violates the Chrome App contentSecurityPolicy:

You can’t use string-to-JavaScript methods like eval() and new Function().

Meaning, that the player won't work in Chrome Apps without workarounds (and Chrome Extensions as well, though it's a bit easier to work around in that case).

Is there any way this can be changed? Thanks! 😄

Metadata

Metadata

Assignees

Labels

status: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions