Commit 1ef99c0
committed
Inherit crossorigin on the injected web-vitals script
On pages that set Cross-Origin-Embedder-Policy: require-corp, the DAP tag
can carry a crossorigin attribute so its response satisfies the policy. The
dynamically injected web-vitals script never received that attribute, so it
was blocked from loading on such pages.
Read the crossorigin value from the DAP script tag (#_fed_an_ua_tag) and
apply it to the web-vitals script element when present. Regenerated the
minified bundle with the project's terser config.
Fixes #167
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>1 parent 25c4137 commit 1ef99c0
3 files changed
Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments