Skip to content

Feature request: support cdnjs #44

@alex9434

Description

@alex9434

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions