Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Learn More

No able to call window Application into Web Application in Firefox

  • 1 wótegrono
  • 2 matej toś ten problem
  • 23 naglědow
  • Slědne wótegrono wót TyDraniu

more options

I am basically bit lost. So scenario is I have a Web application(ASPNet Core) which runs on

   https://12.0.0.1:44330

Also have Window Application that runs on local port as

   http://127.0.0.1:1790

So you I am trying to call from Web application using ajax call to the Window Application as below

    $.ajax({
   		    async: true,
               crossDomain: true,
               url: "http://127.0.0.1:1790/TestService/TestMethod",
               method: "GET",
               headers: {
                       "Access-Control-*": "*",
                       "cache-control": "no-cache"
               },
   			success: function (response) {},
   			error: function (response) {
                               debugger;
                               console.log(response);
                           }
   			});
      • The below call is perfectly working in Chrome

But When I try to run same in fireFox (Version 64.0.2)*** it is going in error function of `ajax` to `statusCode 1` as `Message "Error"`.

Can any one help how can I run self-hosted service into another Web application in Firefox

Getting Warning in FireFox as

   Cross-Origin Request Blocked: 
   The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:1790/TestService/TestMethod. (Reason: CORS request did not succeed)

.

I am basically bit lost. So scenario is I have a Web application(ASPNet Core) which runs on https://12.0.0.1:44330 Also have Window Application that runs on local port as http://127.0.0.1:1790 So you I am trying to call from Web application using ajax call to the Window Application as below $.ajax({ async: true, crossDomain: true, url: "http://127.0.0.1:1790/TestService/TestMethod", method: "GET", headers: { "Access-Control-*": "*", "cache-control": "no-cache" }, success: function (response) {}, error: function (response) { debugger; console.log(response); } }); ***The below call is perfectly working in Chrome But When I try to run same in fireFox (Version 64.0.2)*** it is going in error function of `ajax` to `statusCode 1` as `Message "Error"`. Can any one help how can I run self-hosted service into another Web application in Firefox Getting Warning in FireFox as Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:1790/TestService/TestMethod. (Reason: CORS request did not succeed) .

Wšykne wótegrona (1)

more options

Right, this is expected behaviour. Different port is different origin.

See:

You can also try to enter about:config and set security.fileuri.strict_origin_policy = false.

Wót TyDraniu změnjony