I’ve created an application that works in preview and allows me to create a user, but when it’s live, the user creation and login don’t work, giving these errors:
app-DKKA8w9L.js:58 ⚠️ React Router Future Flag Warning: React Router will begin wrapping state updates in React.startTransition in v7. You can use the v7_startTransition future flag to opt in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_starttransition.
Km @ app-DKKA8w9L.js:58
Understand this warning
app-DKKA8w9L.js:58 ⚠️ React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the v7_relativeSplatPath future flag to opt in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
Km @ app-DKKA8w9L.js:58
Understand this warning
(index):1 Access to XMLHttpRequest at 'https://staffsync-22.emergent.host/api/auth/register' from origin 'https://pro.marbsense.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Understand this error
staffsync-22.emergent.host/api/auth/register:1 Failed to load resource: net::ERR_FAILED
I’ve tried to fix it, but there’s no way — I really need help.
Would you like me to help you debug the CORS issue and explain how to fix it on the backend or in your hosting configuration? That’s the main reason it fails in live mode.