admin管理员组文章数量:1024652
I am trying to make an ajax call in angularjs application. but randomly i am getting this caution says "Provisional headers are shown" and whenever this caution es in debugger console I am getting very slow response from server (about 30 to 45 sec). and its happening around 6 times in 10 times trial period.
this is my angularjs piece of code:-
var request = $http({
method:"post",
url:"/getdata.php",
data:filterpara,
headers: {'Content-Type' : 'application/x-www-form-urlencoded'}
});
request.success(function(data){
console.log(data);
});
This type of piece of code I am using number of times in different controllers. but randomly same issue is ing in different controllers as well. i am unable to figure out why this is happening?
I have also tried the solutions which is already provided by these links (but no luck) :-
Node js / Angular js - CAUTION: Provisional headers are shown (this kind of problem I am facing)
"CAUTION: provisional headers are shown" in Chrome debugger
I am trying to make an ajax call in angularjs application. but randomly i am getting this caution says "Provisional headers are shown" and whenever this caution es in debugger console I am getting very slow response from server (about 30 to 45 sec). and its happening around 6 times in 10 times trial period.
this is my angularjs piece of code:-
var request = $http({
method:"post",
url:"/getdata.php",
data:filterpara,
headers: {'Content-Type' : 'application/x-www-form-urlencoded'}
});
request.success(function(data){
console.log(data);
});
This type of piece of code I am using number of times in different controllers. but randomly same issue is ing in different controllers as well. i am unable to figure out why this is happening?
I have also tried the solutions which is already provided by these links (but no luck) :-
Node js / Angular js - CAUTION: Provisional headers are shown (this kind of problem I am facing)
"CAUTION: provisional headers are shown" in Chrome debugger
Share Improve this question edited May 23, 2017 at 12:17 CommunityBot 11 silver badge asked Mar 2, 2016 at 6:30 sumitjainjrsumitjainjr 7711 gold badge8 silver badges28 bronze badges 2- I have the same exact issue and neither of the other answers helped me, were you able to solve it? – Naguib Ihab Commented Jan 18, 2017 at 23:45
- Sometimes it's the AdBlock interfering, try disabling it if you have ome – CatalinBerta Commented Jan 19, 2017 at 12:19
1 Answer
Reset to default 1Sometimes it's the AdBlock interfering, try disabling it if you have one and retry.
I am trying to make an ajax call in angularjs application. but randomly i am getting this caution says "Provisional headers are shown" and whenever this caution es in debugger console I am getting very slow response from server (about 30 to 45 sec). and its happening around 6 times in 10 times trial period.
this is my angularjs piece of code:-
var request = $http({
method:"post",
url:"/getdata.php",
data:filterpara,
headers: {'Content-Type' : 'application/x-www-form-urlencoded'}
});
request.success(function(data){
console.log(data);
});
This type of piece of code I am using number of times in different controllers. but randomly same issue is ing in different controllers as well. i am unable to figure out why this is happening?
I have also tried the solutions which is already provided by these links (but no luck) :-
Node js / Angular js - CAUTION: Provisional headers are shown (this kind of problem I am facing)
"CAUTION: provisional headers are shown" in Chrome debugger
I am trying to make an ajax call in angularjs application. but randomly i am getting this caution says "Provisional headers are shown" and whenever this caution es in debugger console I am getting very slow response from server (about 30 to 45 sec). and its happening around 6 times in 10 times trial period.
this is my angularjs piece of code:-
var request = $http({
method:"post",
url:"/getdata.php",
data:filterpara,
headers: {'Content-Type' : 'application/x-www-form-urlencoded'}
});
request.success(function(data){
console.log(data);
});
This type of piece of code I am using number of times in different controllers. but randomly same issue is ing in different controllers as well. i am unable to figure out why this is happening?
I have also tried the solutions which is already provided by these links (but no luck) :-
Node js / Angular js - CAUTION: Provisional headers are shown (this kind of problem I am facing)
"CAUTION: provisional headers are shown" in Chrome debugger
Share Improve this question edited May 23, 2017 at 12:17 CommunityBot 11 silver badge asked Mar 2, 2016 at 6:30 sumitjainjrsumitjainjr 7711 gold badge8 silver badges28 bronze badges 2- I have the same exact issue and neither of the other answers helped me, were you able to solve it? – Naguib Ihab Commented Jan 18, 2017 at 23:45
- Sometimes it's the AdBlock interfering, try disabling it if you have ome – CatalinBerta Commented Jan 19, 2017 at 12:19
1 Answer
Reset to default 1Sometimes it's the AdBlock interfering, try disabling it if you have one and retry.
本文标签: javascripthow to prevent quotProvisional headers are shownquot in angularjs ajax callStack Overflow
版权声明:本文标题:javascript - how to prevent "Provisional headers are shown" in angularjs ajax call - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745616495a2159323.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论