You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error when I send a patch request to my api (with loopback 4) , all the other request are working fine , i get error only on patch request .
error :
Access to XMLHttpRequest at 'url api' from origin 'url web app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
any idea please !! this problem it was also on loopback 3 , so i think if migrate to loopback 4 i will solve the problem , but i get always the same error
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I get an error when I send a patch request to my api (with loopback 4) , all the other request are working fine , i get error only on patch request .
error :
Access to XMLHttpRequest at 'url api' from origin 'url web app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
any idea please !! this problem it was also on loopback 3 , so i think if migrate to loopback 4 i will solve the problem , but i get always the same error
here is cors configuration in index.ts 👍
please help
Beta Was this translation helpful? Give feedback.
All reactions