Skip to content

Commit

Permalink
remove allow creds from cors
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Jul 18, 2023
1 parent caae28b commit 118c92a
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions mint/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,12 @@ async fn main() -> anyhow::Result<()> {
.route("/check", post(post_check))
.route("/melt", post(post_melt))
.route("/info", get(get_info))
.layer(
CorsLayer::very_permissive()
.allow_credentials(true)
.allow_headers([
AUTHORIZATION,
CONTENT_TYPE,
ACCESS_CONTROL_ALLOW_CREDENTIALS,
ACCESS_CONTROL_ALLOW_ORIGIN,
]),
)
.layer(CorsLayer::very_permissive().allow_headers([
AUTHORIZATION,
CONTENT_TYPE,
ACCESS_CONTROL_ALLOW_CREDENTIALS,
ACCESS_CONTROL_ALLOW_ORIGIN,
]))
.with_state(state);

let ip = Ipv4Addr::from_str(&settings.info.listen_host)?;
Expand Down

0 comments on commit 118c92a

Please sign in to comment.