Firefox 瀏覽器附加元件
登入
Safe CORS 預覽

Safe CORS 作者: Cemal Koc

Per-tab CORS bypass controlled from your page scripts. No toolbar button, no popup — just dispatch a CustomEvent from your code to enable or disable CORS for the current tab. Session-only, nothing is persisted.

0(0 筆評分)0(0 筆評分)
下載 Firefox
下載檔案

擴充套件後設資料

關於此擴充套件
Safe CORS lets developers bypass CORS restrictions on a per-tab basis, controlled entirely from page scripts.
Unlike traditional CORS extensions that use a toolbar toggle to disable CORS globally, Safe CORS is activated programmatically from your own code — making it ideal for local development and testing.
HOW TO USE
Open your browser console (F12) and run:
// Enable CORS bypass for this tab
document.dispatchEvent(new CustomEvent('CORS_DISABLE_TOGGLE', { detail: { enabled: true } }))
// Disable CORS bypass for this tab
document.dispatchEvent(new CustomEvent('CORS_DISABLE_TOGGLE', { detail: { enabled: false } }))
Or add a helper to your development page:
function setCors(enabled) {
document.dispatchEvent(new CustomEvent('CORS_DISABLE_TOGGLE', { detail: { enabled } }))
}
if (location.hostname === 'localhost') {
setCors(true)
}
WHY "SAFE"?
• Per-tab only — other tabs are unaffected
• Session-only — close the tab or restart the browser and it's gone
• Page-initiated — no accidental global CORS bypass
• No data collection — the extension collects nothing
由 1 位評論者給出 0 分
登入後即可幫此擴充套件評分
目前沒有評分

已儲存星等

5
0
4
0
3
0
2
0
1
0
還沒有評論
權限與資料

必要權限:

  • 存取瀏覽器分頁
  • 存取您所有網站中的資料

收集下列資料:

  • 開發者聲稱此擴充套件不要求收集任何資料。
了解更多
更多資訊
附加元件網址
  • 技術支援信箱
版本
1.0.0
大小
28.18 KB
最近更新
5 天前 (2026年3月14日)
相關分類
  • 網頁開發
授權條款
MIT License
版本紀錄
  • 瀏覽所有版本
新增至收藏集
檢舉此附加元件
前往 Mozilla 官網

附加元件

  • 關於
  • Firefox 附加元件部落格
  • 擴充套件工作坊
  • 開發者交流中心
  • 開發者政策
  • 社群部落格
  • 討論區
  • 回報 Bug
  • 評論撰寫指南

瀏覽器

  • Desktop
  • Mobile
  • Enterprise

產品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隱私權
  • Cookie
  • 法律資訊

除另有註明外,本站內容皆採用創用 CC 姓名標示—相同方式分享條款 3.0 或更新版本授權大眾使用。