Closed totzk9 closed 5 months ago
const response = await fetch(endpoint, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Openerp-Session-Id': this.session_id, }, body: JSON.stringify(data), }); if (!response.ok) { throw new Error(response.statusText); } const cookies = response.headers.get('set-cookie');
headers does not have set-cookie
set-cookie
Figured it out, should've used the account password instead of the APIkey for jsonRPC
headers does not have
set-cookie