Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
BRH 12
#DOTNET 10
#LINQ 6
LINQ 5
#ASP.NET 4
#DATAACCESS 4
ASP.NET 3
DOTNET 3
.NET 2
WCF 2

Archive · View All
July 2010 5
August 2010 4
June 2011 3
October 2010 1

Failed to Load Resource - Safari issue

Jun 28 2011 9:32PM by IBhadelia   

Hello All,

Recently application stopped working on Safari with issue 'Failed to Load Resource'. The scenario is; the web page send AJAX-Request to an aspx page and show the output into html container. The issue occurred when the request comes form https and with Safari. Basically all WebKit based browser having same issue, like Chrome and Safari.

However browser will show 200 OK as response but after it and we try to read response it will turn as 'Failed to Load Resource'.

One of the collogue found the solutions with the help of developer tool that, the missing part was content-length. We need to pass a response header specifying the content-length for all XHR loaded data. 

Here is the solutions, a single line!

Response.AddHeader("Content-Length", data.Length.ToString());

This is solutions for Failed to load resource in Sarafi browser with https as well as Chrome.

Found many theories and ideas on what the issue could be, here is a wrap:

  • Requiring content-length with HTTPS when making XHR (ajax) request is most likely a security requirement by webkit. Just so happens is that Chrome requires it no matter HTTP or HTTPS
  • IE and Firefox may have missed this or just not part of the requirements.
  • Testing on Mac Safari exposed the real error: CFURLErrorDomain:303, which is how the solution was uncovered

 

Hope this get also resolved your issue! It resolved mine!

Tags: #DOTNET, BRH, .NET,


IBhadelia
164 · 1% · 299
1
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Failed to Load Resource - Safari issue" rated 5 out of 5 by 1 readers
Failed to Load Resource - Safari issue , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]