Delivery & Security (SRI)
Last updated
Pushly supports loading a pinned, immutable version of the Web SDK using Subresource Integrity (SRI).
This option is intended for customers with strict security requirements, such as enforced CSP policies. Most customers should continue using the Latest SDK.
Use SRI only if you require:
Cryptographic verification of third-party scripts
Enforcement of require-sri-for script in Content Security Policy
Explicit control over when SDK updates occur
If you do not have these requirements, use the Latest SDK instead.
<script
src="https://cdn.p-n.io/sdk/web/pushly@3.1.0.min.js"
integrity="sha384-REPLACE_WITH_HASH"
crossorigin="anonymous"
async
data-domain-key="DOMAIN_KEY">
</script>This loads a specific SDK version that will never change.
The integrity hash for each SDK release is published in a release manifest.
For version 3.1.0:
Look for the files[].integrity field and copy its value into the integrity attribute.
Pinned SDKs do not auto-update.
To upgrade:
Update the SDK version in the script src
Update the corresponding integrity hash
Deploy the updated snippet
If you do not update the snippet, your site will continue running the older SDK indefinitely.
Last updated
https://cdn.p-n.io/sdk/web/releases/3.1.0/manifest.json- src="https://cdn.p-n.io/sdk/web/pushly@3.1.0.min.js"
- integrity="sha384-OLD_HASH"
+ src="https://cdn.p-n.io/sdk/web/pushly@3.2.0.min.js"
+ integrity="sha384-NEW_HASH"