CORS Error Between WeWeb Editor and Data Service

Hi WeWeb Support Team,

I’m experiencing a CORS error in your platform when trying to make requests in the editor, as well as during the usage of the application deployed. The browser console shows:

“Access to XMLHttpRequest at ‘https ://data.weweb.io/designs/23b3ee95-8a66-4d58-b26a-3b9751fd4370/rest-api/request’ from origin ‘https ://editor.weweb.io’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

This error appears sometimes (not always) when I’m trying to change pages and press buttons.

This appears to be an issue between your own services (editor .weweb.io trying to access data .weweb.io). My backend API (Node.js) already has the correct CORS configuration to allow requests from editor .weweb.io:

cors({
  origin: ['https://mydomain.com', 'https://editor.weweb.io'],
  methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
  credentials: true
  // other settings...
})

Could you please check if there’s an issue with the CORS configuration on data .weweb.io that’s preventing it from accepting requests from editor .weweb.io? Or if there is anything that I’m missing here?

Thank you for your help!

It’s most likely your issue

1 Like

Hi Leonardo :waving_hand:

Please open a support chat so we can take a better look at your specific issue:

1 Like

Great! Thanks for the clarifications, just sent a message to the support team. If I discover how to fix this issue, I will share here

1 Like

I’m getting the same error, out of the blue.

Looks like it might be on the Supabase side. https://status.supabase.com/

1 Like