Answer the question
In order to leave comments, you need to log in
Why is vue-resource returning a 500 error on Windows?
Good afternoon.
I'm making a page using VUE. Using GET vue-resource , I request JSON data that Yii2 returns. So, everything goes smoothly on MacOS (Safari, Chrome), I open the page on Windows and, in response to a request, an error 500 is displayed in the console and the requested data goes on, i.e. Yii2 returns what you need without errors (if you go directly to the Yii2 URL, the page opens without errors and the data is displayed). I broke my head, I don’t understand why this is happening.
This is the error I always get GET localhost/purchases/api/price 500 (Internal Server Error) vue-resource.min.js?v=1536320897:7
I also tried using Axios, and the same thing:
GET localhost/purchases/api /price500 (Internal Server Error) spread.js:25
All figured out)
Answer the question
In order to leave comments, you need to log in
Understand with the server why it reacts so violently to the request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question