본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Firefox cancels an XHR $http.get request for an image, while the same works for Chrome?

  • 5 답장
  • 1 이 문제를 만남
  • 2 보기
  • 최종 답변자: Neha_Pandey

more options

This question might have been answered before, but I couldn't find anything on it so I am posting this question.

In our application we have a grid which contains blob data. In this grid, for a blob that has an image attached to it we give a link, with the URL to access that link. On the click of this link we call $http.get. For some reason firefox aborts this request.

P.S : When we hit the same request using Fiddler we get the response on time.

Request you to please provide some insight on this issue.

This question might have been answered before, but I couldn't find anything on it so I am posting this question. In our application we have a grid which contains blob data. In this grid, for a blob that has an image attached to it we give a link, with the URL to access that link. On the click of this link we call $http.get. For some reason firefox aborts this request. P.S : When we hit the same request using Fiddler we get the response on time. Request you to please provide some insight on this issue.

모든 댓글 (5)

more options

Hi Neha, could you check both Firefox's Web Console and Browser Console for any error/warning/debug messages that could be related to this problem? You can access these from the menu or the keyboard shortcuts:

Web Console - opens in the lower part of the tab

  • "3-bar" menu button > Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • Ctrl+Shift+k

Browser Console - opens in a separate window

  • "3-bar" menu button > Developer > Browser Console
  • (menu bar) Tools > Web Developer > Browser Console
  • Ctrl+Shift+j

Anything?

As a general note, beware of CORS issues between subdomains, e.g., www.example.com vs. example.com.

more options

Hi jscher2000, Thanks for your help, but no there aren't any errors or logs in any of the console windows.

more options

If you check Firefox's Network Monitor, are you getting an unexpected HTTP response code for the request? https://developer.mozilla.org/docs/Tools/Network_Monitor

If that doesn't provide any further insight, can you provide a link to a page demonstrating this problem?

more options

I am getting the following response :

HTTP/1.1 200 OK Cache-Control: private Content-Length: 466626 Content-Type: image/png Server: Microsoft-IIS/10.0 Access-Control-Allow-Origin: http://localhost:55198 Access-Control-Allow-Credentials: true Content-Disposition: attachment; filename=Screenshot_1.jpg; size=466626 X-AspNet-Version: 4.0.30319 X-SourceFiles: =?UTF-8?B?QzpcUHJvamVjdHNcU3l0b3Jpb1xFbnNlbWJsZVxSdW50aW1lXEFwaVxFbnNlbWJsZUZYLlJ1bnRpbWUuQXBpXGFwaVxDb21tb25CbG9iXDc2ZTIzNDAzLTQ3NTUtNDZiYS1iZjcxLTg3N2JlOGUzYWU2Yg==?= X-Powered-By: ASP.NET Date: Tue, 13 Jun 2017 12:45:43 GMT

But when I check the properties in Fiddler, I can see X-ABORTED-WHEN: SendingResponse

more options

Neha_Pandey said

In the Netwrok monitor there's not response header for this request but I am getting the following response if I hit the request using Fiddler :

HTTP/1.1 200 OK Cache-Control: private Content-Length: 466626 Content-Type: image/png Server: Microsoft-IIS/10.0 Access-Control-Allow-Origin: http://localhost:55198 Access-Control-Allow-Credentials: true Content-Disposition: attachment; filename=Screenshot_1.jpg; size=466626 X-AspNet-Version: 4.0.30319 X-SourceFiles: =?UTF-8?B?QzpcUHJvamVjdHNcU3l0b3Jpb1xFbnNlbWJsZVxSdW50aW1lXEFwaVxFbnNlbWJsZUZYLlJ1bnRpbWUuQXBpXGFwaVxDb21tb25CbG9iXDc2ZTIzNDAzLTQ3NTUtNDZiYS1iZjcxLTg3N2JlOGUzYWU2Yg==?= X-Powered-By: ASP.NET Date: Tue, 13 Jun 2017 12:45:43 GMT

But when I check the properties in Fiddler, I can see X-ABORTED-WHEN: SendingResponse

글쓴이 Neha_Pandey 수정일시