Skip to content

Commit ae6449d

Browse files
authored
Merge pull request #1492 from MTES-MCT/feat-same-origin
Modifier la stratégie de requête pour utiliser same-origin
2 parents f7d2389 + 40639cc commit ae6449d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • frontend/scripts/services

frontend/scripts/services/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type CurrentUserResponse = {
2929

3030
export const djangoApi = createApi({
3131
reducerPath: "djangoApi",
32-
baseQuery: fetchBaseQuery({ credentials: "include" }),
32+
baseQuery: fetchBaseQuery({ credentials: "same-origin" }),
3333
keepUnusedDataFor: 600,
3434
endpoints: (builder) => ({
3535
getLandConsoStats: builder.query({

0 commit comments

Comments
 (0)