Skip to content

Commit

Permalink
check lowercase headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Grekkq committed Oct 18, 2023
1 parent 8cfa0e3 commit 6c1af6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ object ProxyDirectives extends LazyLogging {

def cors(): Directive0 = {
extractRequest.flatMap { request =>
if (request.headers.exists(_.name().equals(ORIGIN))) {
if (request.headers.exists(_.name().toLowerCase.equals(ORIGIN.toLowerCase))) {
mapResponseHeaders { oldHeaders =>
Seq(
`Access-Control-Allow-Origin`.*,
Expand Down

0 comments on commit 6c1af6d

Please sign in to comment.