Sha256: 76a3ece503e672bfe863918ddc5684121bcc4a59776c9d7bf6523e014e27eb87
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
module Inferno module DSL module Runnable PRE_FLIGHT_HANDLER = proc do [ 200, { 'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Headers' => 'Content-Type, Authorization' }, [''] ] end def allow_cors(*paths) paths.each do |path| route(:options, path, PRE_FLIGHT_HANDLER) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems