diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-02 07:39:34 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-02 07:39:34 -0600 |
| commit | f6121abd7464c53c1bfaf9cdab347da08d5d269e (patch) | |
| tree | f8b74f1e2fffb6806bfed918c6952b1d8bab1675 /src/web | |
| parent | a2206e6b06980e270dd57e8255c61612c4f52ca7 (diff) | |
| parent | fca1ab049b21bd73bad1787c86768804bae0a661 (diff) | |
| download | slskd-f6121abd7464c53c1bfaf9cdab347da08d5d269e.tar.gz | |
Merge remote-tracking branch 'origin' into groups
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/lib/api.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/src/lib/api.js b/src/web/src/lib/api.js index f839619c..9a62ed33 100644 --- a/src/web/src/lib/api.js +++ b/src/web/src/lib/api.js @@ -3,7 +3,10 @@ import { baseUrl, tokenPassthroughValue } from '../config'; import * as session from './session'; axios.defaults.baseURL = baseUrl; -const api = axios.create(); + +const api = axios.create({ + withCredentials: true +}); api.interceptors.request.use(config => { const token = session.getToken(); |
