Are you serving the same document root in both cases?
Route not registering requests on live server
Hello
I'm comming to you in a time of need, hoping to get answers to a problem I've been batteling with for some time now.
I'm working on developing an api with two routes being used for tournaments when I'm arranging LAN events for my pupils.
However, the two routes do not work, when it is not in a localhost environment.
When I am hosting the gameserver on my own computer, and running the website on localhost, it works just fine. The server is able to contact the two routes, and transmit data.
When the website is uploaded, the routes is working just fine, however, it is not registering the gameservers attempt to contact the route.
I'm assuming it might be something with the headers, however, this is not the case. I also tried disabling the VerifyCSRF token on the two routes using the following code on the route:
"withoutMiddleware([\App\Http\Middleware\VerifyCsrfToken::class])"
I added a logging event to the routes (Log::info('Event 1 visited');) and nothing is registered in the live environment, but it is in the localhost environment.
The live environment is hosted on a VPS, where the server and website is located on the same IP.
I also tried creating a CORS middleware, without any luck.
I hope someone might be able to provide some feedback to a possible solution. The most important problem is making it so the routes are registering the gameservers attempt to contact it.
Please or to participate in this conversation.