lib/sampler/cors_helper.rb
def cors_set_access_control_headers
    headers[CORS_HEADER_ALLOW_ORIGIN] = request.headers[CORS_HTTP_ORIGIN]
    CORS_FIXED_HEADERS.each do |k, v|
      headers[k] = v
    end
  end
#
# For all responses in this controller, return the CORS access control headers.
#
For all responses in this controller, return the CORS access control headers.
For all responses in this controller return the CORS access control headers .
def cors_set_access_control_headers
    headers[CORS_HEADER_ALLOW_ORIGIN] = request.headers[CORS_HTTP_ORIGIN]
    CORS_FIXED_HEADERS.each do |k, v|
      headers[k] = v
    end
  end
def cors_set_access_control_headers headers [ CORS_HEADER_ALLOW_ORIGIN ] = request . headers [ CORS_HTTP_ORIGIN ] CORS_FIXED_HEADERS . each do | k , v | headers [ k ] = v end end
For all responses in this controller, return the CORS access control headers.
For all responses in this controller return the CORS access control headers .