fix: Use wp_signon for proper WordPress authentication in standalone login
This commit is contained in:
@@ -9,7 +9,7 @@ export const api = {
|
||||
if (!headers.has('Accept')) headers.set('Accept', 'application/json');
|
||||
if (options.body && !headers.has('Content-Type')) headers.set('Content-Type', 'application/json');
|
||||
|
||||
const res = await fetch(url, { credentials: 'same-origin', ...options, headers });
|
||||
const res = await fetch(url, { credentials: 'include', ...options, headers });
|
||||
|
||||
if (!res.ok) {
|
||||
let responseData: any = null;
|
||||
|
||||
Reference in New Issue
Block a user