Skip to content

Commit

Permalink
fix: add missing origin request header (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagibb authored Apr 4, 2023
1 parent 6e693c9 commit b0dee34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scala/com/resy/ResyApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ object ResyApi extends Logging {

ws.url(url)
.withHttpHeaders(
createHeaders(resyKeys) :+ "Content-Type" -> "application/x-www-form-urlencoded": _*
createHeaders(resyKeys) ++ Seq(
"Content-Type" -> "application/x-www-form-urlencoded",
"origin" -> "https://widgets.resy.com/"
): _*
)
.post(post)
.map(_.body)(system.dispatcher)
Expand Down

0 comments on commit b0dee34

Please sign in to comment.