Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

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

  • 5 respostas
  • 1 tem este problema
  • 2 visualizações
  • Última resposta de 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.

Todas as respostas (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

Alterado por Neha_Pandey em