Class: RailsPulse::CspTestController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsPulse::CspTestController
- Defined in:
- app/controllers/rails_pulse/csp_test_controller.rb
Overview
CSP Test Controller for Rails Pulse Tests Content Security Policy compliance with strict policies
Instance Method Summary collapse
Methods inherited from ApplicationController
#set_global_filters, #set_pagination_limit
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/rails_pulse/csp_test_controller.rb', line 8 def show respond_to do |format| format.html { render :show } format.json { render json: { status: "ok", message: "CSP test endpoint working" } } end end |