Destiner / astro-analytics

Astro components for site analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This script link along with others need CORS attributes

aFuzzyBear opened this issue · comments

<script src="https://cdn.usefathom.com/script.js" data-site={site} defer></script>

Hey its me again, I just wanted to say if you add the crossorigin="use-credentials || anonymous" to the script tags it would allow that to pass through without having any CORS issues, else they would end up running away with you,

@aFuzzyBear thanks for suggestion. Do you mind to clarify? I don't have a lot of knowledge with crossorigin, but adding it makes the script failing to load, at least on localhost.

Hi @Destiner,

The CORS issue is more of a explicit way of telling the browser what to send with that request, if the request was made from the same origin as the request is coming from or if it was made my an external third party script.

This is a pitfall of problems, I havent looked into which cors tag that you need to apply for each of these scripts that you have, but I would recommend checking it out,