Skip to content

Commit

Permalink
Fix case on access-control-allow-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Sep 11, 2022
1 parent 862a776 commit 75d4510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/cors/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def origin_for_response_header(origin)

def to_preflight_headers(env)
h = to_headers(env)
h.merge!('Access-Control-Allow-Headers' => env[Rack::Cors::HTTP_ACCESS_CONTROL_REQUEST_HEADERS]) if env[Rack::Cors::HTTP_ACCESS_CONTROL_REQUEST_HEADERS]
h.merge!('access-control-allow-headers' => env[Rack::Cors::HTTP_ACCESS_CONTROL_REQUEST_HEADERS]) if env[Rack::Cors::HTTP_ACCESS_CONTROL_REQUEST_HEADERS]
h
end

Expand Down

0 comments on commit 75d4510

Please sign in to comment.