dia_cors

Creator: coderz1093

Last updated:

0 purchases

dia_cors Image
dia_cors Images

Languages

Categories

Add to Cart

Description:

dia cors

The CORS middleware for Dia.
Install: #
Add to pubspec.yaml in dependencies section this:
dia_cors: ^0.1.2
copied to clipboard
Then run pub get
Usage: #
A simple usage example:
app.use(cors());
copied to clipboard
Optional named params: #

origin - Access-Control-Allow-Origin header. Default: '*'
maxAge - Access-Control-Max-Age header
credentials - Access-Control-Allow-Credentials header
expose - Access-Control-Expose-Headers header

Use with: #

dia - A simple dart http server in Koa2 style.
dia_router - Middleware like as koa_router.
dia_body - Package with the middleware for parse request body.
dia_static - Package to serving static files.

Features and bugs: #
I will be glad for any help and feedback!
Please file feature requests and bugs at the issue tracker.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.