class Crack::Handler::CORS

Overview

The CORS Handler adds support for Cross Origin Resource Sharing. WIP

Defined in:

crack/cors.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Crack::Handler::Base

call(context) call, config(&) config

Class methods inherited from class Crack::Handler::Base

config(&) config

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.instance #

class method to return a singleton instance of this Controller


[View source]

Instance Method Detail

def allow_credentials : Bool #

[View source]
def allow_credentials=(allow_credentials : Bool) #

[View source]
def allow_headers : String #

[View source]
def allow_headers=(allow_headers : String) #

[View source]
def allow_methods : String #

[View source]
def allow_methods=(allow_methods : String) #

[View source]
def allow_origin : String #

[View source]
def allow_origin=(allow_origin : String) #

[View source]
def call(context) #
Description copied from class Crack::Handler::Base

Execution of this handler.


[View source]
def max_age : Int32 #

[View source]
def max_age=(max_age : Int32) #

[View source]