If possible, use the https version of that external page.
If that is not possible, use the background page to handle the AJAX request (example).
More Related Contents:
- Cross-domain XMLHttpRequest using background pages
- How to access the webpage DOM rather than the extension page DOM?
- Persistent Service Worker in Chrome Extension
- How to change chrome packaged app id Or Why do we need key field in the manifest.json?
- chrome extension mv3 – Modularize service worker js file
- Detect Chrome extension first run / update
- Disable developer mode extensions pop up in Chrome
- Modifying the built-in newtab page
- Chrome Extension Content Script on https://chrome.google.com/webstore/
- Is it possible to run Google Chrome in headless mode with extensions?
- Using ECMAScript 6
- How to download a CRX file from the Chrome web store for a given ID? [closed]
- “Origin null is not allowed by Access-Control-Allow-Origin” in Chrome. Why? [duplicate]
- Chrome cancels CORS XHR upon HTTP 302 redirect
- How can I enable my chrome extension in incognito mode?
- How to disable (gray out) page action for Chrome extension?
- Can I modify outgoing request headers with a Chrome Extension?
- How to solve Chrome’s 6 connection limit when using xhr polling
- How to access the webpage DOM/HTML from an extension popup or background script?
- How do I import scripts into a service worker using Chrome extension manifest version 3?
- Disable chrome download multiple files confirmation
- Cross-Origin XMLHttpRequest in chrome extensions
- Add contextmenu items to a Chrome extension’s browser action button
- Prevent chrome.notifications API from hiding my notification after a few seconds
- Chrome version 18+: How to allow inline scripting with a Content Security Policy?
- What does “http://*/*”, “https://*/*” and “” mean in the context of Chrome extension’s permissions
- CORS issue doesn’t occur when using POSTMAN
- How can I detect the current tab’s mime type in a Google Chrome extension?
- Passing message from background.js to popup.js
- Accessing `window`/DOM/HTML of the webpage from the extension