question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Post request becomes a get request in Edge

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:24

github_iconTop GitHub Comments

2reactions
thomas-kalacommented, Sep 22, 2020

Microsoft Edge 44.18362.449.0 Microsoft EdgeHTML 18.18363 still has the same bug

2reactions
sppilkacommented, Jun 26, 2019

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found