Skip to content

Commit

Permalink
Include cookies in the ping request.
Browse files Browse the repository at this point in the history
  • Loading branch information
ParadoxZero committed Jul 24, 2024
1 parent 4852322 commit cc97a84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/ping_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const ping_endpoint: string = "/.auth/me";

export async function PingRemote(): Promise<Object> {
try {
const response = await fetch(remote_domain + ping_endpoint);
const response = await fetch(remote_domain + ping_endpoint, {
credentials: 'include'
});
return JSON.parse(await response.text());
} catch (error) {
return Promise.reject(error);
Expand Down

0 comments on commit cc97a84

Please sign in to comment.