class Crack::Handler::CORS
- Crack::Handler::CORS
- Crack::Handler::Base
- Reference
- Object
Overview
The CORS Handler adds support for Cross Origin Resource Sharing. WIP
Defined in:
crack/cors.crConstructors
Class Method Summary
-
.instance
class method to return a singleton instance of this Controller
Instance Method Summary
- #allow_credentials : Bool
- #allow_credentials=(allow_credentials : Bool)
- #allow_headers : String
- #allow_headers=(allow_headers : String)
- #allow_methods : String
- #allow_methods=(allow_methods : String)
- #allow_origin : String
- #allow_origin=(allow_origin : String)
-
#call(context)
Execution of this handler.
- #max_age : Int32
- #max_age=(max_age : Int32)