CORS Error

Post author
Josh Dean

Anyone had an issue related to this?: -

I am now getting an error when my site is trying to connect to Memberstack. Nothing is working on the site as it can't seem to connect. I am getting this error in the console log: -

Access to XMLHttpRequest at 'https://client.memberstack.com/member/json' from origin 'https://pwa-the-transformation-challenge.webflow.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

GET https://client.memberstack.com/member/json net::ERR_FAILED 429 (Too Many Requests)

Comments

2 comments

  • Comment author
    Duncan from Memberstack

    Josh Lopez Tyler Bell do you guys know why this might be happening?

    0
  • Comment author
    Josh Dean

    Hi Duncan, 

    I know it's related to the amount of API requests the page/site is making.  If I keep refreshing the page, I get the CORS error.  Then, it goes away after a certain period of time.

    I have consolidated the code on the page but it still seems to make the same number of requests even after making one single request in the code?  Then, if I remove the form that is on the page, the number of requests finally drops.

    Not sure why this is, but I need to have the form on the page.  If the form isn't being submitted, how can it make so many requests to Memberstack's API every time the page loads?

    0

Please sign in to leave a comment.