Refused to set unsafe header "connection" #1042

Closed
opened 2025-08-09 17:18:39 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @chris-herring on 2/9/2017

I've noticed this error in Safari (9.1.2) and found in domain-task the following:

    if (!init.headers['Connection']) {
        init.headers['Connection'] = 'keep-alive';
    }

I see Connection listed here as a forbidden header name in the fetch spec.

Can this be wrapped in a !isBrowser condition?

*Originally created by @chris-herring on 2/9/2017* I've noticed this error in Safari (9.1.2) and found in domain-task the following: if (!init.headers['Connection']) { init.headers['Connection'] = 'keep-alive'; } I see Connection listed here as a forbidden header name in the [fetch spec](https://fetch.spec.whatwg.org/#forbidden-header-name). Can this be wrapped in a !isBrowser condition?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1042
No description provided.