Post method not working in edge browser, but it is working in other browser like Firefox. internet explorer, chrome

允我心安 提交于 2020-04-12 07:07:10

问题


I am struggling with a post method in edge browser, while for same request i am getting response in other browsers like Internet explorer, chrome, Firefox but not in edge. While i have done lot of analysis but i could not figure out why post request is not working only in edge doubt which i have regarding behavior seen in network tabs.

Please find attached snapshot of network tab(I have removed url and name from screenshot for some policy) Now question is 1. Why in protocol tab despite of showing HTTPS it is showing "Pending" and in result tab it is also not showing any status just "Pending" and in Initiator tab it is showing "Fetch"

Now i am attaching same request in firefox browser

In this picture we can see complete information of request header and response header

Till this point i find everything right about this request but i don't know why it is not working one doubt that i have is in response header we have

Access-Control-Allow-Methods: GET, POST, OPTIONS

Do we need to add FETCH also here? Another doubt i have here that in this project iframe tag is getting used could this be possible cause for this ?

Do i need to make any change in my request header or response header ? or do i need some kind of configuration

I am using angular 7 Any help is appreciated for any further explanation please comment so that i can clarify Thanks in advance

Note: While doing some research i found that for edge browser we need to send request in string format which i have already done


回答1:


After doing some research on my code base i found that there is nothing wrong in code, than after found, This is open issue on Microsoft edge browser version 42, -Edge marks a request/response as pending indefinitely requests with content-encoding:identity – Issue can be found on Microsoft official website mentioned in below link

edge marks a request/response as pending

Than i tested same request on Dev channel and canary channel of Microsoft edge browser where is it working fine, which means in future release of Microsoft edge this issue will be fixed. Edge for Dev channel and canary channel can be found on below link

download microsoft edge canary/dev channel



来源:https://stackoverflow.com/questions/58157960/post-method-not-working-in-edge-browser-but-it-is-working-in-other-browser-like

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!