Closed
Description
Version
3.0.0-beta.5
Reproduction link
https://github.com/Rayraegah/cli-error-axios
Steps to reproduce
- Configure a proxy under devServer in vue.config.js (e.g. '/gists' : 'https://api.github.com')
- Use Axios to send a POST (.e.g. axios.post('/gists/...'))
- Use Axios to send a GET (.e.g. axios.get('/gists/...'))
- Repeat using fetch instead of Axios (same errors)
What is expected?
The axios post request should be proxied to https://api.github.com
like GET
requests do. Sometimes the GET
requests are not proxied.
What is actually happening?
The axios request goes to https://localhost:8080/gists/...
instead of https://api.github.com/gists
The issue is the same as the one in create-react-app
that was resolved recently.
refer: facebook/create-react-app#3726 and facebook/create-react-app#3311
On my main repo, GET requests were successful, only POST failed. But in the test repo - both GET and POST end in errors.
Metadata
Metadata
Assignees
Labels
No labels