Skip to main content
Contributor I
June 7, 2021
Solved

Fetch API giving CORS

  • June 7, 2021
  • 3 replies
  • 2640 views

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

    This topic has been closed for replies.
    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.

    3 replies

    Dov
    DovAnswer
    Klaviyo Alum
    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.

    DD
    joshwcorbett
    Contributor I
    Contributor I
    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
    Klaviyo Employee
    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