Skip to content

mapljs/headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@mapl/headers

Parsing stuff for Mapl.

CORS

CORS header parser for Mapl.

import { headers as cors } from '@mapl/headers/cors';

app.headers(cors({
  // A list of allowed headers or a single header (optional)
  allowHeaders: ...,
  // A list of allowed methods or a single methods (optional)
  allowMethods: ...,
  // A list of headers or a single header to expose (optional)
  exposeHeaders: ...,
  // A max age (optional)
  maxAge: ...,
  // Whether to allow credentials (optional)
  allowCredentials: ...
}));

About

Header utilities for Mapl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published