eleventy-high-performance-blog icon indicating copy to clipboard operation
eleventy-high-performance-blog copied to clipboard

AllowDomainlist CORS in ga.js depends on deployment platform

Open indcoder opened this issue 1 year ago • 2 comments

cc @cramforce ,

My issue is very specific to Netlify deployment..

In the ga.js file, the example domain has a trailing slash

image

But unfortunately the origin returned by Netlify is bereft of the trailing slash [I'm not sure of vercel etc]

image

leading to

image

Perhaps in the README and as comments in ga.js we need to draw users attention to it....its a simple but tricky bug; it takes some time to debug...or the equality comparison needs to disregard the trailing slash.

Or the example [industrail empathy needs to be shown without the trailing slash]

indcoder avatar Aug 21 '22 16:08 indcoder

Yeah, the / is wrong. Do you want to send a PR to fix it?

cramforce avatar Aug 21 '22 16:08 cramforce

I will ...along a few more 😀

AC

Sent from mobile

On Sun, 21 Aug, 2022, 22:22 Malte Ubl, @.***> wrote:

Yeah, the / is wrong. Do you want to send a PR to fix it?

— Reply to this email directly, view it on GitHub https://github.com/google/eleventy-high-performance-blog/issues/147#issuecomment-1221582138, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQAQZAIBZ2ZJRG5PIX7MX3V2JNDFANCNFSM57FHEDBQ . You are receiving this because you authored the thread.Message ID: @.***>

indcoder avatar Aug 21 '22 16:08 indcoder