
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@onjmin/cors-killer
Advanced tools
CORS制限を回避するモジュール
CORS対応済みのURLは素通し
既に CORS 対応済みの代表的なサービスの URL(例: Imgur、Wikipedia、Unsplash)や
Base64 埋め込み形式の data URI は、そのまま返す設計。
→ 既に安全にアクセスできるものは手を加えず、可用性を落とさない。
その他の URL は自動でプロキシ経由
上記以外の URL は、公開・無認証のプロキシをランダムで経由して安全に取得。
使用するプロキシ例:
余計な機能なし
エクスポートされる関数は corsKiller ただ1つ。
引数は文字列、返り値も文字列のシンプル設計。
Node.js / ブラウザ対応
型安全な TypeScript で両環境で利用可能
おんJ民が作っている
質問や相談はフォーラムで: 質問フォーラム
npm i @onjmin/cors-killer
import { corsKiller } from "@onjmin/cors-killer";
const url = "https://example.com/image.png"; // CORS非対応
const safeUrl = corsKiller(url);
console.log(safeUrl); // CORS対応済みURL
// https://api.allorigins.win/raw?url=https://example.com/image.png
const { corsKiller } = await import("https://cdn.jsdelivr.net/npm/@onjmin/cors-killer/dist/index.min.mjs");
const url = "https://example.com/image.png"; // CORS非対応
const safeUrl = corsKiller(url);
console.log(safeUrl); // CORS対応済みURL
// https://api.allorigins.win/raw?url=https://example.com/image.png
pnpm run dev: http://localhost:2783 から動作確認可能FAQs
CORS制限を回避するモジュール
We found that @onjmin/cors-killer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.