{"library":"corser","type":"library","category":null,"description":"Corser is a highly configurable middleware for Node.js designed to handle Cross-Origin Resource Sharing (CORS). It offers a flexible approach to managing CORS preflight requests and setting appropriate response headers, supporting both static whitelists for allowed origins and dynamic origin checking through a callback function. The package's current stable version is 2.0.1, released in August 2016. Due to the lack of updates since then, its release cadence is effectively non-existent, indicating an abandoned or legacy status despite an 'active' project badge from its active development period. Its key differentiators at the time included robust compatibility with Connect and Express middleware, as well as plain Node.js `http` servers, providing granular control over CORS policies for various server setups. Developers should be aware of its CommonJS-only nature and lack of ongoing maintenance.","language":"javascript","status":"abandoned","version":"2.0.1","tags":["javascript","cors","cross-origin resource sharing","connect","express","middleware"],"last_verified":"Wed May 27","install":[{"cmd":"npm install corser","imports":["const corser = require('corser');","const corser = require('corser');\nconst corserMiddleware = corser.create();"]},{"cmd":"yarn add corser","imports":[]},{"cmd":"pnpm add corser","imports":[]}],"homepage":null,"github":"https://github.com/agrueneberg/Corser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/corser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/corser/compatibility"}}