const url = 'https://nettle-feather-area.glitch.me/'
const opts = {
headers: {
'Content-Type': 'application/json',
'authorization': 'asdf',
'x-custom-header': 'asdf',
},
method: 'POST',
credentials:"include",
body: JSON.stringify({ message: 'ping' }),
}
fetch(url,opts);
I can see that stackoverflow somehow manages to set origin to null in this request, how does it do that? Would expect origin to be https://stackoverflow.com
or as commenters have mentioned maybe stacksnippets.net
. Anything but null!
Is it something to do with iframes?