Edge Extensions- Cross Origin Ajax Request From Edge Browser

Issue #13368195 • Assigned to Steven K.

Details

Author
aarav u.
Created
Aug 22, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

I am not able to make a CORS calls from extension. Like below, Always getting network error.

Please advise, Thanks In Advance

$.ajax({

url : url,

type: 'GET’,

async: true,

tryCount : 0,

retryLimit :3,

success : function(result,status,xhr) {

},error : function(xhr, status, error) {

this.tryCount++;

if (this.tryCount <= this.retryLimit) {

// try again

$.ajax(this);

return;

}

}

}

Attachments

0 attachments

    Comments and activity

    • Anyone looking at the posted issue!

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi,

      I am looking at it now.  Can you provide a complete repro for this?  I.e. including the manifest file you are using and the URL’s?  I will create one myself but this will save time if I have any questions related to the manifest file settings, etc.

      Also, can you send the request and response headers for the initial request?

      Appreciate the help,

      Steve

    • Can you also provide the error message you are seeing and from where you are seeing it?

      Which version of Windows 10 are you using.

    • Thanks a lot Steven,
      Below are the details,
      Manifest.Json
      {
      "manifest_version": 2,
      "author": "MYEXT",
      "name": "myext Plugin",
      "description": "Downloads the document",
      "version":"1.0",
      "permissions": [":///*", "tabs","downloads", “activeTab”],

      "browser_action": {
      "default_icon": { "48": “favicon.png” }
      },
      "content_scripts": [
      {
      "matches": ["http:///","https:///"],
      "js": [“jquery-3.2.1.min.js","content.js”]
      }
      ],
      "background": {
      "scripts": [“back.js","jquery-3.2.1.min.js”],"persistent":false
      } ,
      "externally_connectable": {
      “matches": ["://.myext.com/*”]
      }

      }

      And the Error is:

      {readyState: 0, status: 0, statusText: "error"}

    • And windows 10 version is :
      OS Name Microsoft Windows 10 Enterprise
      Version 10.0.15063 Build 15063

    • I am getting these messages on background page of extension!

    • Any updates on this?

    • Hi team,

      Any update on this. This really blocking my work.

      Thanks In Advance,

      Thank you,
      Yogesh

    You need to sign in to your Microsoft account to add a comment.

    Sign in