Merge pull request #920 from LAION-AI/857-backend-token-decrypt

857 backend token decrypt
This commit is contained in:
Keith Stevens
2023-01-29 19:31:16 +09:00
committed by GitHub
8 changed files with 85 additions and 0 deletions
+3
View File
@@ -6,8 +6,11 @@ const headers = {
"Content-Type": "application/json",
};
// Create Axios such that we always send credential cookies along with the
// request. This allows the Backend services to authenticate the user.
const api = axios.create({
headers,
withCredentials: true,
});
export const get = (url: string) => api.get(url).then((res) => res.data);