Skip to content

Commit

Permalink
HTTPMethod::Options changed to HTTPMethod::Options
Browse files Browse the repository at this point in the history
  • Loading branch information
TiARETiK authored and Dmitriy Zaytsev committed Jan 21, 2025
1 parent aa79927 commit aca74a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/crow/middlewares/cors.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ namespace crow
set_header_no_override("Access-Control-Allow-Headers", headers_, res);
set_header_no_override("Access-Control-Expose-Headers", exposed_headers_, res);
set_header_no_override("Access-Control-Max-Age", max_age_, res);
if (req.method != HTTPMethod::OPTIONS)
if (req.method != HTTPMethod::Options)
{
if (allow_credentials_) set_header_no_override("Access-Control-Allow-Credentials", "true", res);
if (allow_credentials_ && origin_ == "*")
Expand Down

0 comments on commit aca74a6

Please sign in to comment.