jQuery ajax request error Status 0 on SSL-HTTPS when using Opera or Safari

Today we were testing our WebClientPrint for ASP.NET vNext and found an issue with jQuery Ajax requests on HTTPS but just when using Opera or Safari as the code worked just fine with IE, Chrome & Firefox.

In short the issue was this. The URL we specified to jQuery $get() contained the port number for HTTPS which is 443. Something like this $.get('https://localhost:443/something.aspx', function (data) { ... });

Again, that code worked just fine with IE, Chrome & Firefox but when using Opera or Safari, the Ajax error was “Status 0”. Removing the port number 443 from the URL fixed the issue on those browsers. HTH,

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: