Skip to content

Commit

Permalink
Replace polyfillurl to avoid security vulnerabilities (#2018)
Browse files Browse the repository at this point in the history
* chore: replace `polyfill.io`

* fix(changelog): add change log

---------

Co-authored-by: SukkaW <[email protected]>
  • Loading branch information
shubham2811 and SukkaW authored Jul 5, 2024
1 parent 789a54f commit 6392a8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "subapp-web",
"comment": "replace polyfill.io url to avoid security issues",
"type": "patch"
}
],
"packageName": "subapp-web"
}
2 changes: 1 addition & 1 deletion packages/subapp-web/lib/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function setup() {
return {
process() {
return `<script src="https://polyfill.io/v3/polyfill.min.js?features=es5,es6&flags=gated"></script>`;
return `<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es5,es6&flags=gated"></script>`;
}
};
};

0 comments on commit 6392a8f

Please sign in to comment.