Skip to main content
Solved

Fetch API giving CORS


Forum|alt.badge.img+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

Best answer by Dov

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.

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • Answer
  • June 7, 2021

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.


joshwcorbett
Contributor I
Forum|alt.badge.img+1
  • Contributor I
  • 2 replies
  • November 15, 2021

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.


David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • November 15, 2021

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