dia_cors 0.0.1 dia_cors: ^0.0.1 copied to clipboard
CORS middleware for Dia http server. Use it with 'dia' and 'dia_router' packages
The CORS middleware for Dia.
Usage: #
A simple usage example:
app.use(cors());
Named params: #
origin
- Access-Control-Allow-Origin header. Default: '*'maxAge
- Access-Control-Max-Age headercredentials
- Access-Control-Allow-Credentials headerexpose
- Access-Control-Expose-Headers header
Use with: #
- dia - A simple dart http server in Koa2 style.
- dia_router - Middleware like as koa_router.
Plans: #
- dia_body - Package to parse request body. In progress
- dia_static - Package to serve static files.
Features and bugs: #
I will be glad for any help and feedback! Please file feature requests and bugs at the issue tracker.