app-generator / react-datta-able-pro

React Datta Able PRO - Full-stack Seed Project | AppSeed
https://appseed.us/product/datta-able-pro/full-stack/react/
Other
2 stars 0 forks source link

login issue #3

Open TheSnowGuru opened 2 years ago

TheSnowGuru commented 2 years ago

when i try to login my consule is filled with errors:

Access to XMLHttpRequest at 'https://develop.XXXXXXX.ml/api/users/login' from origin 'https://main.d3me78666on3b6.amplifyapp.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. RestLogin.js:53 Error: Network Error at e.exports (createError.js:16:15) at XMLHttpRequest.h.onerror (xhr.js:99:14) develop.deeptrade.ml/api/users/login:1 Failed to load resource: net::ERR_FAILED RestLogin.js:55 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data') at RestLogin.js:55:68 signin:1 Access to XMLHttpRequest at 'https://develop.XXXXXXX.ml/api/users/login' from origin 'https://main.d3me78666on3b6.amplifyapp.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

cloudflare error 1016 - please advice, thanks