I am a novice in Chrome Extension Development and I am developing a Chrome Developer Extension (appears as a part of Developer Tools).
The requirement is to make External Service (some URL )call which may or may not be in the same Server (of origin). From the documentation I see the extensions are not restricted by the Same Origin Policy.
However I am running into CORS issue while I try to call an external service.
The Manifest.json looks like the below one, where I have permission to all websites.
"permissions": [
"tabs",
"clipboardWrite",
"http://*/*",
"https://*/*"
],
In the code I am trying to call HTTP POST on some URL , the code looks like
I am getting the following Error.
XMLHttpRequest cannot load http//services.odata.org/V2/(S(lts2i32bwwy01zoq4cxyscwt))/OData/OData.svc/Products. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-extension://cdcbiglainpfeapfejdjdkldcehjakfi' is therefore not allowed access. The response had HTTP status code 501.
Can anyone help me regarding this issue.
Regards
Atanu