mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-04 17:27:50 +08:00
Fix: Chat/Agent embedded page (#13199)
### What problem does this PR solve? Fix: Chat/Agent embedded page #13190 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -48,8 +48,15 @@ const storage = {
|
||||
};
|
||||
|
||||
export const getAuthorization = () => {
|
||||
const jwtAuth = getSearchValue('jwt_auth');
|
||||
if (jwtAuth) {
|
||||
return jwtAuth;
|
||||
}
|
||||
|
||||
const auth = getSearchValue('auth');
|
||||
const authorization = auth ? auth : storage.getAuthorization() || '';
|
||||
const authorization = auth
|
||||
? 'Bearer ' + auth
|
||||
: storage.getAuthorization() || '';
|
||||
|
||||
return authorization;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user