This PR fixes an issue where when the JWT token was stored in the cookie storage, the call to /env would fail with a 401. The request was denied because the window variable 'USE_JWT_COOKIES' was not set at this point.
To fix the problem, I renamed the /branding.js call to /public-env.js so that we can send any public environment variable to the front-end without authentication and passed the value of process.USE_JWT_COOKIES in it.
This PR fixes an issue where when the JWT token was stored in the cookie storage, the call to
/env
would fail with a 401. The request was denied because thewindow
variable 'USE_JWT_COOKIES
' was not set at this point.To fix the problem, I renamed the
/branding.js
call to/public-env.js
so that we can send any public environment variable to the front-end without authentication and passed the value ofprocess.USE_JWT_COOKIES
in it.