Safe CORS di 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.
Metadâts de estension
Informazions su la estension
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
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
Valutât 0 di 0 recensôrs
Permès e dâts
Permès obligatoris:
- Acedi aes schedis dal navigadĂ´r
- Acedi ai tiei dâts di ducj i sÎts web
Racuelte dâts:
- Il svilupadôr al declare che cheste estension no domande la racuelte di dâts.
Altris informazions
- Colegaments component adizionâl
- Version
- 1.0.0
- Dimension
- 28,18 kB
- Ultin inzornament
- 5ěź ě (2026ë 3ě 14ěź)
- Categoriis coreladis
- Licence
- Licence MIT
- Cronologjie versions
- Zonte ae racuelte