Intro.js: anchorLink.href violates unsafe-inline content security policy

Created on 14 Mar 2016  路  4Comments  路  Source: usablica/intro.js

The anchorLink.href is hard coded to 'javascript:void(0);'. This violates the unsafe-inline content security policy for the script-src directive. The violation does not effect the functionality in any way but it triggers a CSP report and that's usually reported back to the server (which cause a lot of unnecessary noise).

I think that this should be configurable for those who wish to enforce CSP.

bug

Most helpful comment

Hey @harunsmrkovic, I just tested the PR on chrome and FF and it's no longer violates the unsafe-inline CSP policy. Thanks.

All 4 comments

Also, just removing a href attribute from anchor works just fine. I can create a PR with this fix.

@harunsmrkovic can you please?

Here, hope it is good :) #568

Hey @harunsmrkovic, I just tested the PR on chrome and FF and it's no longer violates the unsafe-inline CSP policy. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Themandunord picture Themandunord  路  3Comments

ethaniel picture ethaniel  路  6Comments

alexandernst picture alexandernst  路  5Comments

stephendeo picture stephendeo  路  5Comments

zombiezlk picture zombiezlk  路  6Comments