Skip to content

Commit

Permalink
Add js sdk client headers through cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bellamy committed Sep 22, 2022
1 parent 36b9364 commit dc435ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ impl Cmd {
"Referer",
"Sec-Fetch-Mode",
"User-Agent",
"X-Client-Name",
"X-Client-Version",
])
.allow_methods(vec!["GET", "POST"]);
let routes = jsonrpc_route.with(cors);
Expand Down

0 comments on commit dc435ce

Please sign in to comment.