0

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);

enter image description here

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?

david_adler
  • 9,690
  • 6
  • 57
  • 97

0 Answers0