#CORS Error Help Needed

1 messages · Page 1 of 1 (latest)

royal wave
#

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.

dawn void
gilded jasper
#

support emergent are not replying in gmail

twin cloak
#

Share the job id here as well so other support folks can have a look at your issue

tidal ginkgo
#

Let me know if you get it resolved. I have the same issue. (blocked by CORS) Not heard back from support in two days through email.

solid pond
#

@royal wave have you tried troubleshooting it with agent? Specifically descirbing what's the issue, that it's only happening on deployed version, and sharing the console logs with it?

tidal ginkgo
#

I have. About 50 times. Deployed it 18 times after every attempt. Burned through 300 credits trying. It still says in an infrastructure issue. The issue with the chat is it can't see anything on production side. So it can only do so much. Its damn good, but not a miracle worker. I'm thinking of just migrating everything off to S3 so I can manage the database myself.

royal wave
#

I´m in the same situation as @tidal ginkgo - I´ve tryed everything and nothing works. I´m thinking bout migrating the database to see if that´s the issue. I´ve been considering to use SupaBase so i have the control of the data and maybe y can solve the problem

gilded jasper
royal wave
#

<@&1404346284122308690> I need help with this

pulsar pagoda
#

Make a backup of your code, try having it remove the CORS policy entirely and then regenerate

solid pond
#

Can you share your jobID?

wild karma
#

I’ve made a website and I’m having trouble with its login the agent keeps telling me to contact support and send "Please purge CDN cache for anim8tv.com. Multiple rebuilds are not reflecting due to cached static assets. Cache clearance would enable the latest updates to be visible."

royal wave
#

479341eb-3157-4ec8-bc17-359f800a6c1e @solid pond

solid pond
#

@scenic void Can you please help these guys?