Skip to content

Commit

Permalink
*: Fix CORS for auth bearer
Browse files Browse the repository at this point in the history
Closes #180.

Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Mar 21, 2024
1 parent dcb3068 commit 4010c1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func (a *RestAPI) FormBinaryBearer(ctx echo.Context, params apiserver.FormBinary
Token: base64.StdEncoding.EncodeToString(btoken.Marshal()),
}

ctx.Response().Header().Set(accessControlAllowOriginHeader, "*")
return ctx.JSON(http.StatusOK, resp)
}

Expand Down

0 comments on commit 4010c1d

Please sign in to comment.