derrickreimer / fathom-client

A Fathom Analytics library to help with client-side routing
http://npm.im/fathom-client
MIT License
177 stars 18 forks source link

CORS error with custom domain #35

Closed dmitrizzle closed 2 years ago

dmitrizzle commented 2 years ago

I'm seeing CORS error when browsing to the next page. Strangely, the CORS comes from a duplicate request (but from my WebPack chunk rather than from Fathom's script -- see attached).

I checked my dashboard and I'm seeing my session being shown so there're no issues with functionality as far as I know.

I'm using a custom domain and I use Fathom.trackPageview(); on route changes pretty much exactly how it appears in the docs.

derrickreimer commented 2 years ago

Hey @dmitrizzle -- you mentioned "see attached" -- is there a missing attachment here with a bit more info?

dmitrizzle commented 2 years ago

Ah yes, sorry! Screen Shot 2022-06-10 at 1 28 00 PM

BUT I can no longer replicate this error. I'm not sure what I did to make it go away, could be something as convoluted as caching from my previous setup...

derrickreimer commented 2 years ago

Hmm strange. CORS is always a bit of a nightmare. Going to close for now, since I don't think this is directly related to this library.