Skip to content

Add cors with bedrock.config app-global options and export via middleware #48

@dlongley

Description

@dlongley

Add a bedrock-configurable version of the cors middleware and export it for use by routes. This would include, most importantly, a maxAge of 86400, which is the max acceptable age for modern browsers. There is little reason not to include this header in deployments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions