Getting an error when I try to login to my strapi backend. Works fine in local but in production on a digital ocean server it says something went wrong and when I check the console it gives me a 500 error even though I haven’t submitted anything. Font doesn’t look same as local either.
can you provider some logs ?
It was a cors issue if anyone hits the same problem. I needed to add the api url to the accepted list of domains in my cors middleware.
Thank you @J_D !!
Just wasted about 3 hours trying to work out what the hell was going on!
Thank You, this solved it. I copied my temporary deployment link DigitalOcean gave me into middleware.js and it worked. Spent 3 hours trying to figure it out
Also don’t forget… No trailing slashes in cors
You need this: “http://web.com”