{"id":29164990,"url":"https://github.com/oe/cors-unlocker","last_synced_at":"2026-03-17T13:53:22.705Z","repository":{"id":300597744,"uuid":"896767266","full_name":"oe/cors-unlocker","owner":"oe","description":"enable web app cors in modern browser","archived":false,"fork":false,"pushed_at":"2025-06-27T17:00:17.000Z","size":3384,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T22:05:42.435Z","etag":null,"topics":["chrome","chrome-extension","cors","cors-unlocker","unlocker"],"latest_commit_sha":null,"homepage":"http://cors.forth.ink/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-01T08:52:07.000Z","updated_at":"2025-06-27T17:00:20.000Z","dependencies_parsed_at":"2025-06-22T16:50:49.900Z","dependency_job_id":null,"html_url":"https://github.com/oe/cors-unlocker","commit_stats":null,"previous_names":["oe/cors-unlocker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oe/cors-unlocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fcors-unlocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fcors-unlocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fcors-unlocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fcors-unlocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oe","download_url":"https://codeload.github.com/oe/cors-unlocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fcors-unlocker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262916681,"owners_count":23383889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","chrome-extension","cors","cors-unlocker","unlocker"],"created_at":"2025-07-01T07:08:48.524Z","updated_at":"2026-03-17T13:53:17.682Z","avatar_url":"https://github.com/oe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CORS Unlocker\n\n\u003cdiv align=\"center\"\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Chrome Web Store](https://img.shields.io/badge/Chrome-Available-green)](https://chrome.google.com/webstore)\n[![Firefox Add-ons](https://img.shields.io/badge/Firefox-Available-orange)](https://addons.mozilla.org)\n[![npm version](https://img.shields.io/npm/v/cors-unlocker.svg)](https://www.npmjs.com/package/cors-unlocker)\n\n**🚀 Instantly unlock CORS restrictions for seamless API testing and cross-origin development**\n\n[🌐 Website](https://cors.forth.ink) | [📖 Documentation](https://cors.forth.ink) | [📦 NPM Package](https://www.npmjs.com/package/cors-unlocker)\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- **🔓 One-Click CORS Unlock** - Enable/disable CORS restrictions with a single click\n- **🎯 Smart Credentials Support** - Automatically handles authentication headers\n- **⚡ Zero Configuration** - Works out of the box, no setup required\n- **🪶 Lightweight \u0026 Fast** - Minimal impact on browser performance\n- **🛠️ Developer-Friendly** - Built by developers, for developers\n- **📦 NPM Integration** - Programmatic CORS management for your applications\n- **🌐 Cross-Browser Support** - Chrome, Firefox, and Edge compatible\n- **🔒 Privacy-First** - No data collection, works entirely locally\n\n## 🚀 Quick Start\n\n### Browser Extension\n\n1. **Install from Store:**\n   - [Chrome Web Store](https://chrome.google.com/webstore) \n   - [Firefox Add-ons](https://addons.mozilla.org)\n   - [Microsoft Edge Add-ons](https://microsoftedge.microsoft.com/addons)\n\n2. **Enable CORS:**\n   - Click the CORS Unlocker icon in your browser toolbar\n   - Toggle CORS for the current tab\n   - Make your cross-origin requests without restrictions\n\n### NPM Package\n\n```bash\nnpm install cors-unlocker\n```\n\n```javascript\nimport { enable, disable, isExtInstalled } from 'cors-unlocker';\n\n// Check if extension is installed\nconst installed = await isExtInstalled();\n\n// Enable CORS for current page\nawait enable();\n\n// Enable with credentials support\nawait enable({ credentials: true });\n\n// Disable CORS\nawait disable();\n```\n\n## 🏗️ Project Structure\n\nThis is a monorepo containing multiple packages:\n\n```\ncors-unlocker/\n├── packages/\n│   ├── browser-extension/     # Browser extension (Chrome, Firefox, Edge)\n│   ├── npm/                   # NPM package for developers\n│   └── website/               # Documentation and demo website\n├── docs/                      # Additional documentation\n└── README.md                  # This file\n```\n\n## 📦 Packages\n\n### Browser Extension\nCross-browser extension that enables CORS bypass functionality:\n- **Chrome/Edge**: Uses `declarativeNetRequest` API\n- **Firefox**: Content script bridge for external communication\n- **Features**: Popup interface, settings page, tab-specific control\n\n### NPM Package (`cors-unlocker`)\nLightweight JavaScript package for programmatic CORS management:\n- **Size**: ~1.7KB gzipped\n- **Formats**: ES modules and UMD\n- **TypeScript**: Full type definitions included\n- **Browser Support**: Chrome, Firefox, Edge\n\n### Website\nDocumentation and demo site built with Astro:\n- **Live Demo**: Interactive CORS testing interface\n- **Documentation**: Complete API reference and guides\n- **Playground**: Test the extension functionality\n\n## 🛠️ Development\n\n### Prerequisites\n- Node.js 18+\n- pnpm (recommended) or npm\n\n### Setup\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/cors-unlocker.git\ncd cors-unlocker\n\n# Install dependencies\npnpm install\n\n# Start development servers\npnpm dev\n```\n\n### Build\n```bash\n# Build all packages\npnpm build\n\n# Build specific package (from root)\npnpm dev:extension          # Extension development\npnpm dev:website            # Website development  \npnpm dev:cors-unlocker      # NPM package development\n```\n\n### Package Scripts\n```bash\n# Development\npnpm dev                    # Start all dev servers\npnpm dev:extension          # Extension development only\npnpm dev:website            # Website development only\npnpm dev:cors-unlocker      # NPM package development\n\n# Building\npnpm build                  # Build all packages\n```\n\n## 🎯 Use Cases\n\n### API Testing \u0026 Development\n```javascript\n// Perfect for testing APIs during development\nawait enable({ credentials: true });\nconst response = await fetch('https://api.example.com/data');\n```\n\n### Cross-Origin Integration\n```javascript\n// Seamless third-party service integration\nawait enable();\nconst result = await fetch('https://third-party-api.com/endpoint');\n```\n\n### Automated Testing\n```javascript\n// Include in your test setup\nbeforeEach(async () =\u003e {\n  if (await isExtInstalled()) {\n    await enable();\n  }\n});\n```\n\n## 🔒 Privacy \u0026 Security\n\n- **Local Operation**: All functionality works entirely in your browser\n- **No Data Collection**: We don't collect, store, or transmit any user data\n- **Tab-Specific**: Only affects tabs where you explicitly enable CORS\n- **Open Source**: Fully transparent and auditable code\n- **Secure by Default**: Automatically disables when not needed\n\n## 📋 Browser Support\n\n| Browser | Extension | NPM Package |\n|---------|-----------|-------------|\n| Chrome  | ✅        | ✅          |\n| Firefox | ✅        | ✅          |\n| Edge    | ✅        | ✅          |\n| Safari  | ❌        | ❌          |\n\n## 📖 Documentation\n\n- **[Getting Started](https://cors.forth.ink/docs)** - Quick setup guide\n- **[API Reference](https://cors.forth.ink/docs)** - Complete API documentation\n- **[Examples](https://cors.forth.ink/playground)** - Common use cases and examples\n- **[FAQ](https://cors.forth.ink/faq)** - Common questions and answers\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](DEVELOPMENT.md) for details.\n\n### Development Workflow\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Built with [Vite](https://vitejs.dev/) and [TypeScript](https://www.typescriptlang.org/)\n- UI components powered by [React](https://reactjs.org/) and [Tailwind CSS](https://tailwindcss.com/)\n- Icons from [Lucide](https://lucide.dev/)\n- Website built with [Astro](https://astro.build/)\n\n## 📞 Support\n\n- **Documentation**: [cors.forth.ink](https://cors.forth.ink)\n- **Issues**: [GitHub Issues](https://github.com/yourusername/cors-unlocker/issues)\n- **Discussions**: [GitHub Discussions](https://github.com/yourusername/cors-unlocker/discussions)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**⭐ Star this repository if CORS Unlocker helps your development workflow!**\n\nMade with ❤️ by developers, for developers.\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foe%2Fcors-unlocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foe%2Fcors-unlocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foe%2Fcors-unlocker/lists"}