Webbläsartillägg för Firefox
Logga in
Förhandsvisning av Safe CORS

Safe CORS av 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 recensioner)0 (0 recensioner)
Hämta Firefox
Hämta fil

Metadata för tillägg

Om detta tillägg
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
Betyg 0 av 0 recensenter
Logga in för att betygsätta detta tillägg
Det finns inga betyg än

Stjärnklassificering sparad

5
0
4
0
3
0
2
0
1
0
Inga recensioner ännu
Behörigheter och data

Nödvändiga behörigheter:

  • Åtkomst till webbläsarens flikar
  • Åtkomst till dina data för alla webbplatser

Datainsamling:

  • Utvecklaren säger att detta tillägg inte kräver datainsamling.
Läs mer
Mer information
Länkar för tillägg
  • E-post för support
Version
1.0.0
Storlek
28,18 kB
Senast uppdaterad
för 5 dagar sedan (14 mar 2026)
Relaterade kategorier
  • Webbutveckling
Licens
MIT-licens
Versionshistorik
  • Se alla versioner
Lägg till i samling
Rapportera detta tillägg
Gå till Mozillas hemsida

Tillägg

  • Om
  • Firefox tilläggsblogg
  • Verkstad för tillägg
  • Utvecklarcenter
  • Utvecklarpolicyer
  • Community-blogg
  • Forum
  • Rapportera en bugg
  • Recensionsriktlinjer

Webbläsare

  • Desktop
  • Mobile
  • Enterprise

Produkter

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Sekretess
  • Kakor
  • Juridisk information

Om inget annat anges, är innehållet på denna webbplats licensierat under licensen Creative Commons Attribution Share-Alike License v3.0 eller senare version.