Error 431 Request Header Fields Too Large after enabling Msal authentication to app

590 views Asked by At

Due to loo long cookie send in request header azure webapp returning 431 error ie request headers field too large. I read a lot of issues on Github but nothing working. I post my config :

const config = {
      auth: {
      authority: 'https://login.microsoftonline.com/'+process.env.REACT_APP_TENANT,
      clientId: process.env.REACT_APP_CLIENT_ID,
      redirectUri: process.env.REACT_APP_REDIRECT_URI,
      postLogoutRedirectUri: process.env.REACT_APP_POST_LOGOUT,
      validateAuthority: true,
      navigateToLoginRequestUrl: true
    },
    cache: {
      cacheLocation: "localStorage",
      storeAuthStateInCookie: true
    }
0

There are 0 answers