Module: HttpStub::Server::Application::CrossOriginSupport

Defined in:
lib/http_stub/server/application/cross_origin_support.rb

Defined Under Namespace

Modules: Helpers

Class Method Summary collapse

Class Method Details

.registered(application) ⇒ Object


36
37
38
39
40
41
42
# File 'lib/http_stub/server/application/cross_origin_support.rb', line 36

def self.registered(application)
  application.instance_eval do
    helpers HttpStub::Server::Application::CrossOriginSupport::Helpers
    before { add_headers_if_necessary }
    options("*") { handle_options_if_necessary }
  end
end