node: don't limit the auth rpc

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2023-08-14 22:13:49 +08:00
parent e0b119884c
commit 017ae32fb7

View file

@ -449,8 +449,10 @@ func (n *Node) startRPC() error {
if err := server.setListenAddr(n.config.AuthAddr, port); err != nil {
return err
}
sharedConfig := rpcConfig
sharedConfig.jwtSecret = secret
// Don't limit the requests to the auth endpoint
sharedConfig := rpcEndpointConfig{
jwtSecret: secret,
}
if err := server.enableRPC(allAPIs, httpConfig{
CorsAllowedOrigins: DefaultAuthCors,
Vhosts: n.config.AuthVirtualHosts,