
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.
@sctg/nocors-azure
Advanced tools
This is a very minimalistic proxy for enabling CORS on non CORS enabled sites.
https://www.npmjs.com/package/@sctg/nocors-pages
You must use it in the /api/package.json file, there is no need to modify the main package.json
Source code.
https://nocors.kiik.cf/api/proxy?url=https://www.example.org
Create a new api entry with VSCode Azure tools or manually.
cd api
npm i --save @sctg/nocors-azure
npm i --save got
npm i --save @azure/functions
In the index.ts of the new api route
import {
AzureFunction,
Context,
HttpRequest,
} from "@azure/functions";
import { proxyAzureRequest } from "@sctg/nocors-azure";
const WHITELIST_REGEX=".*" // DANGEROUS TAKE CARE OF THE WHITELIST
const httpTrigger: AzureFunction = async function (
context: Context,
req: HttpRequest
): Promise<void> {
const proxiedRequest = await proxyAzureRequest(WHITELIST_REGEX, req);
context.res = {
status: proxiedRequest.status,
body: proxiedRequest.body,
headers: proxiedRequest.headers,
};
};
export default httpTrigger;
Now you can proxy your API requests to non CORS enabled site via:
https://YOURSITE.TLD/api/proxy?url=https://NOCORS.WEBSITE/…/API/…/ .
Be extremely attentive to the WHITELIST_REGEX const as it can opens your proxy to anyone
Prefer something like
const WHITELIST_REGEX="https://NOCORS.WEBSITE/.*"
https://www.npmjs.com/package/@sctg/nocors-pages
Source code.
https://nocors.pages.dev/proxy?url=https://www.example.org
check the header Via:noCors-for-serverless v…
npm i --save @sctg/nocors-pages
npm i -D --save @cloudflare/workers-types
create a /functions/proxy.ts file
import {proxyPagesRequest} from "@sctg/nocors-pages"
const WHITELIST_REGEX=".*" // DANGEROUS TAKE CARE OF THE WHITELIST
export const onRequest: PagesFunction = async (context) => {
return proxyPagesRequest(context,whitelistConf.regex)
};
Now you can proxy your API requests to non CORS enabled site via:
https://YOURSITE.TLD/proxy?url=https://NOCORS.WEBSITE/…/API/…/
Be extremely attentive to the WHITELIST_REGEX const as it can opens your proxy to anyone
Prefer something like
const WHITELIST_REGEX="https://NOCORS.WEBSITE/.*"
FAQs
Minimalist noCors proxy for servless app
We found that @sctg/nocors-azure demonstrated a not healthy version release cadence and project activity because the last version was released 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.