Commit 4c2af378 authored by Tom Kunze's avatar Tom Kunze
Browse files

server/cipmap-ui.js: Cookies: Use secure and strict mode.

parent 681113e9
'use strict';
const ck_api = Cookies.withAttributes({ expires: 365 });
const ck_api = Cookies.withAttributes({ expires: 365, sameSite: 'strict', secure: true });
var global_api = '/api';
var global_csrftoken = ck_api.get('csrftoken');
......
{% load static %}
const ck_api = Cookies.withAttributes({ expires: 365 });
const ck_api = Cookies.withAttributes({ expires: 365, sameSite: 'strict', secure: true });
var global_csrftoken = ck_api.get('csrftoken');
var hashcip = location.hash.substr(1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment