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

Feature request: support cdnjs #44

Open
alex9434 opened this issue Aug 29, 2020 · 0 comments
Open

Feature request: support cdnjs #44

alex9434 opened this issue Aug 29, 2020 · 0 comments

Comments

@alex9434
Copy link

alex9434 commented Aug 29, 2020

Hello, thank you for a great tool! I would love to be able to download the piwik.js from CDNJS instead of my local server. I tried to use the CDN hostname on the Magento Backend for that:

PHP Script Path: piwik.php
Javascript Path: piwik.min.js
CDN Hostname: cdnjs.cloudflare.com/ajax/libs/piwik/3.14.0/

Unfortunately this does not seem to work because the visits are not counted. Can this be because of cross-site scripting? What is the best way to include the full Script tag:

<script src="https://cdnjs.cloudflare.com/ajax/libs/piwik/3.14.0/piwik.min.js" integrity="sha512-Glp1LVjhpv3ADmJuxE0SdJvV++Bzo39bwy820nGjA82GzH/UNvnf02G9IeZGMxITlZy6w9Ixv868uqsaH8Xkhw==" crossorigin="anonymous"></script>

Would that avoid the issues with cross-site scripting? The library is on cdnjs:
https://cdnjs.com/libraries/piwik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant