Open MAST1999 opened 5 months ago
I'm using node 20.13.0 and I noticed that CORS was not working.
20.13.0
Looking it to it, I found that when trying to set headers on the Response object, it wouldn't work.
Response
const res = new Response(); log.info([...res.headers.entries()], 'Test Headers'); res.headers.append('x-hello', 'world'); log.info([...res.headers.entries()], 'Test Headers 2');
This will print empty for the headers.
I'll try to see if I can update the polyfill to address this issue.
But if you try with just Header it works correctly.
Header
const hd = new Headers(); log.info([...hd.entries()], 'Test Headers'); hd.append('x-hello', 'world'); log.info([...hd.entries()], 'Test Headers 2');
I'm using node
20.13.0
and I noticed that CORS was not working.Looking it to it, I found that when trying to set headers on the
Response
object, it wouldn't work.This will print empty for the headers.
I'll try to see if I can update the polyfill to address this issue.