
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@sctg/nocors
Advanced tools
This is a very minimalistic proxy for enabling CORS on non CORS enabled sites.
Create a new api entry with VSCode Azure tools or manually.
npm i --save @sctg/nocors
cd api
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/index.js";
const WHITELIST_REGEX=".*"
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;
npm i --save @sctg/nocors
npm i -D --save @cloudflare/workers-types
create a /functions/proxy.ts file
import {proxyRequest} from "@sctg/nocors/Pages"
const WHITELIST_REGEX=".*"
export const onRequest: PagesFunction = async (context) => {
return proxyRequest(context,WHITELIST_REGEX)
};
FAQs
Minimalist noCors proxy for servless app
We found that @sctg/nocors 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.