When I move my app to app.domain.com it doesn’t work anymore. All the GET requests stil work, but my POST doesn’t. I already enabled CORS in the .htaccess and otherwise my GET shouldn’t work i guess. Any ideas?
We might need more details about what you mean by “doesn’t work”. Are you getting an error? What do the server logs say for the request? What is in the response you get back? 404? 500? 200? Is there any configuration per environment you might have missed? We don’t necessarily need the answers to all of those… but we probably need to know a little more to be able to help steer you in the right direction.
Yes, I forgot to mention any details. I get a “Failed to load resource: net::ERR_EMPTY_RESPONSE”.
Don’t know about any missed configuration, it all worked fine till I changed my app url to a subdomain instead of subfolder on the main domain.
You have a CORS issue. You should read our documentation on how to fix it.
It was indeed a CORS issue, and I was able to solve it. Thanks.