Fetch Data in Chrome Extension V3

“manifest_version”: 2 的時代, 有很多便利的地方, 但相對對隱私的保護較少,雖然宣告為 V2 但是還是會被限制。

content script to fetch content from any host without encountering the CORS problem in V2. However, things have changed in V3, and an error occurred when trying to fetch the API in the content script due to CORS restrictions.

解法1: Using the background script to fetch data
https://github.com/IOL0ol1/GetResponse

解法2:
https://javascript.plainenglish.io/fetch-data-in-chrome-extension-v3-2b73719ffc0e

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *