Post request becomes a get request in Edge
See original GitHub issueI have a problem I do not know how to solve the need help This is my code
import Axios from 'axios'
import Promise from 'es6-promise'
Promise.polyfill()
import qs from 'qs'
const URL= 'http://192.168.0.112/account/login/username'
let params = {
username:'admin',
password:'admin',
}
Axios.post(URL,qs.stringify(params))
.then(res=>{
console.log(res)
}
)
.catch(error=>{
console.log(error)
}
)
In the non-Edge browser, the page request is the expected post request, but in the Edge browser, the request is a get request. I use another computer Edge test, request normal,
My browser version: Microsoft Edge 41.16299.15.0 Another browser version: Microsoft Edge 38.14392.1066.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:24
Top Results From Across the Web
Why does a POST request become a GET request in Microsoft ...
I think the problem is that Edge only supports certain data types in post requests. If you want to use the content-type ...
Read more >Edge ie-mode site post request problem - Microsoft Q&A
I registered the site domain to be opened in ie mode in the enterprise list and called the jsp with http POST from...
Read more >Why is my browser sending an OPTIONS HTTP request ...
A preflight request, is a mechanism in CORS by the browser to check if the resource destination is willing to accept the real...
Read more >Testing REST API Requests - Field Service Edge ...
You can test GET requests in a browser without any special plug-ins. You can test POST and other request types by using a...
Read more >Why does a POST request become a GET request in Microsoft ...
Coding example for the question Why does a POST request become a GET request in Microsoft Edge?-Reactjs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Microsoft Edge 44.18362.449.0 Microsoft EdgeHTML 18.18363 still has the same bug
It seems that the bug still persists. Tested on MS Edge version 44.17763.1.0 and axios 0.19.0. But also tested with SuperAgent and same error. Edge always swap POST with GET method…