Solved

Fetch API giving CORS

  • 7 June 2021
  • 3 replies
  • 2241 views

Badge +2

Access to fetch at 'https://a.klaviyo.com/api/v1/person/01F783RFPYYKETHTXE5GAWB3R1?api_key=[Moderator_Redacted]' from origin 'https://marvelworldstores.myshopify.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

 

i AM GETTING THID ERROR 

while fetching profile data

icon

Best answer by Dov 7 June 2021, 19:13

View original

3 replies

Userlevel 7
Badge +61

Hello @guptaanjali538,

Thank you for sharing your question with the Klaviyo Community.

This topic was addressed by another staff member in the thread below:

And we have another thread with a couple of other solutions to try here as well:

Please do let us know if the neither of the following threads assists with addressing the error.

Thanks and have a wonderful day.

Userlevel 1
Badge +1

It would be really helpful if we could test Klaviyo integration into our web apps in local development and just let developers be smart with API keys. As opposed to just shutting off that option altogether because of past developers NOT being smart about their API keys.

Userlevel 7
Badge +60

Hey @joshwcorbett,

Really appreciate you sharing your feedback with the Klaviyo Community! I’ll pass your input over to our Product Team for future considerations! 

Thanks for being a part of our Community!

David

Reply