[Vuejs]-Post request return script from live server but works on local server

2👍

This is a problem with the fact that the route is /register. Laravel seem to have a problem with that, although I do not have the technical details as to why.

Renaming the route (path and name) actually solves the problem e.g changing the route to /signup or any other thing apart from /register

👤aib

1👍

I have faced this error two times and fixed it in different ways just change in route.

like

  Instead of this 

  {{base_url}}api/admin/get-contact-insurer/109

Into

{{base_url}}api/admin/getContactInsurer/109

if your route is like the above without dash then use a reverse of this method.
hope this is help full for you.

Leave a comment