If I use fetch() in javascript on my page, it doesn't send cookies in the request in Firefox and Edge, In Chrome it works perfectly. Cookies are required for my page due to authentication.
The request is on the same domain, and I don't see any reason why it shouldn't. I use https.
This doesnt work in Firefox/Edge (No cookies set):
fetch('/kiaweb/notification/key')
.then(function (res) {
res.json().then(function (data) {
self.apiKey = data.key;
});
});
but this works everywhere (all cookies set) (using jquery):
$.get('/kiaweb/notification/key' function(data) {
self.apiKey = data.key;});