Closed MrZillaGold closed 4 years ago
Look at the browser's devtools and/or the network tab of the devtools. Do you see any more specific response headers / response bodies?
I doubt whether the same code from your comment would work, because you are referencing an undefined variable (options
) in the template string..
Found what the problem is, I apologize for the concern.
The code above is working, options
are passed when the class method is called
When I try to use such code, an error 400 occurs, I don’t understand what could be the reason, but this is definitely not an axios problem, when using fetch the answer will be the same.
Watching issues axios, I came across the same problem as mine, but they answered that it was a server problem. https://github.com/axios/axios/issues/2814
If you do not use proxy then this code will work fine