See AppPETs/PrivacyService@fdb53ac.
I tried setting:
These methods could be used to override default HTTP headers, but none of them prevents the header from being sent.
The Shalon implementation gives way more control over which HTTP headers are sent.
This issue was migrated from https://gitlab.prae.me/apppets/PrivacyKit/issues/2.
See AppPETs/PrivacyService@fdb53ac.
I tried setting:
request.allHTTPHeaderFields = [:], seeURLRequest.allHTTPHeaderFieldsrequest.setValue(nil, forHTTPHeaderField: "User-Agent"), seeURLRequest.setValue(_:forHTTPHeaderField:)sessionConfiguration.httpAdditionalHeaders = nilandsessionConfiguration.httpAdditionalHeaders = [:], seeURLSessionConfiguration. httpAdditionalHeadersThese methods could be used to override default HTTP headers, but none of them prevents the header from being sent.
The Shalon implementation gives way more control over which HTTP headers are sent.
This issue was migrated from https://gitlab.prae.me/apppets/PrivacyKit/issues/2.