0
When I send the form to the server, the data is usually recorded in the database. However, when looking at the network of my browser, there are always two requests sent, as below:
1 - sendAjax @ category.js:47 formCategory.addEventListener @ VM968 category.js:13
2 - sendAjax @ category.js:47 formCategory.addEventListener @ category.js:13
Note that requests are differentiated by: VM968
, described in item 1
I’ve been making the requisition for the Larable, however, when I make the request without the Larable, this does not happen!
How can I solve this problem?
Isn’t the HTTP method different? Are requests made for a different domain? Because if so, it could be a cross-Omain check.
– Nizer
This happens with any method. I believe it should be an internal check of the Laravel, cross-Domain... But I need to make sure that it is not a bug! I have developed in Aravel and, this never happened!
– S. Bassi
Guys, I solved the problem. The problem was on the routes. There was a duplicate route, for the same request!
– S. Bassi