class CORS
- CORS
- Application
- ActionController::Base
- Reference
- Object
Overview
Implementation of a TODO application
Defined in:
controllers/cors.crConstant Summary
-
PARSER_LIST =
["application/json"]
-
Implementation of a TODO application
-
RESPONDER_LIST =
["application/json"]
-
Implementation of a TODO application
Class Method Summary
-
.base_route
Helper for obtaining base route
-
.cors_options(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance Method Summary
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#cors_options
implements CORS
Instance methods inherited from class Application
bad_media_type(error) : AC::Error::ContentResponse
bad_media_type,
invalid_param(error) : AC::Error::ParameterResponse
invalid_param,
resource_not_found(error) : AC::Error::CommonResponse
resource_not_found,
set_cors_headers
set_cors_headers,
set_request_id
set_request_id
Class Method Detail
def self.cors_options(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls