class Onyx::HTTP::Middleware::CORS

Overview

Extracted from kemalyst (MIT licensed).

Copyright (c) 2016 dru.jensen

See CORS on Wiki.

Included Modules

Defined in:

onyx-http/middleware/cors.cr

Constructors

Constructor Detail

def self.new(*, allow_origin = "*", allow_headers = ["accept", "content-type"] of ::String, allow_methods = ["GET", "HEAD", "POST", "DELETE", "OPTIONS", "PUT", "PATCH"] of ::String, allow_credentials = false, max_age = 0) #

[View source]