Skip to content

Commit

Permalink
fix cors part 2 question mark
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Sep 12, 2024
1 parent 17f17d1 commit cfe48c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templatespiler-server/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ myCors = cors (const $ Just policy)
where
policy =
simpleCorsResourcePolicy
{ corsRequestHeaders = ["Content-Type"]
{ corsMethods = ["OPTIONS", "GET", "PUT", "POST"]
, corsRequestHeaders = ["Authorization", "Content-Type"]
}

nt :: State -> AppM a -> Handler a
Expand Down

0 comments on commit cfe48c3

Please sign in to comment.