Class: Hitch::PreflightsController
- Inherits:
-
PublicEndpointController
- Object
- PublicEndpointController
- Hitch::PreflightsController
- Includes:
- CorsSupport
- Defined in:
- app/controllers/hitch/preflights_controller.rb
Overview
OPTIONS for the engine-owned auth and discovery routes. A request earns a 204 only after its Host, Origin, target method, and requested headers pass.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 |
# File 'app/controllers/hitch/preflights_controller.rb', line 9 def show methods = request.path_parameters.fetch(:target_methods).split(",") hitch_preflight(allowed_methods: methods) end |