Skip to content

Commit 1241185

Browse files
committed
KAIZEN-0 Test med same-origin for at cookies skal bli med i firefox
1 parent 1df5f62 commit 1241185

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rest/api.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,19 @@ export const lagHentFeaturesFetchInfo = (): FetchInfo => {
4848
export const lagHentBrukereFetchInfo = (params: { sok: BeslutteroversiktSok }): FetchInfo => ({
4949
url: `${VEILARBVEDTAKSSTOTTE_API}/beslutteroversikt/sok`,
5050
method: 'POST',
51+
credentials: 'same-origin',
5152
headers: {
5253
'Content-Type': 'application/json'
5354
},
5455
body: JSON.stringify(params.sok)
5556
});
5657

5758
export const lagHentInnloggetVeilederFetchInfo = (): FetchInfo => ({
59+
credentials: 'same-origin',
5860
url: `${VEILARBVEILEDER_API}/veileder/v2/me`
5961
});
6062

6163
export const lagHentAktivEnhetFetchInfo = (): FetchInfo => ({
64+
credentials: 'same-origin',
6265
url: `${MODIACONTEXTHOLDER_API}/context/aktivenhet`
6366
});

0 commit comments

Comments
 (0)