
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A proxy to automatically add CORS headers, supports:
Access-Control-Allow-Origin: "*"
There's an auto-cors
service deployed at cors.harttle.com. Both HTTP and HTTPS are supported:
AutoCORS-Cookie
headerSet Cookie
when forward, cookie
is not allowed to be set for fetch
fetch("https://cors.harttle.com/https://example.com", {
headers: {
"AutoCORS-Cookie": "XXX"
}
})
Will set a "Cookie: XXX" header when request is forwarded.
Install node and npm
, then run
npx auto-cors
Use AUTO_CORS_PORT
(defaults to 8080
) to set a different port, for example:
AUTO_CORS_PORT=8080 npx auto-cors
Visit http://localhost:8080/https://example.com in your browser.
Here's a systemd script for auto-cors:
https://gist.github.com/harttle/a801084f42b9ee1a2aa6bf5c191b9ad9
FAQs
A proxy to automatically add CORS headers
The npm package auto-cors receives a total of 3 weekly downloads. As such, auto-cors popularity was classified as not popular.
We found that auto-cors 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.