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!