Missing "Content-Length" from worker response
I'm setting a response with these headers:
const corsHeaders = new Headers({
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
'Access-Control-Allow-Headers': 'Authorization, Content-Type',
'Content-Type': 'application/json',
});
But I get responses without "Content-Length". do I have to add it manually? is the existence of 'Content-Type': 'application/json' make it so the length isn't added?1 Reply
Any thoughts?