Skip to content

http headers in iOS are not being sent #182015

Description

@JoshRice1

Steps to reproduce

 _controller = VideoPlayerController.networkUrl(Uri.parse(currentSource),
        formatHint: currentSource.endsWith("m3u8")
            ? VideoFormat.hls
            : VideoFormat.other,
        httpHeaders: {'x-Authorization': "Bearer ${widget.token}"});

When initialized is called we are not seeing the auth header in the requests to the server.

Expected results

When initialize is called all headers specified are sent

Actual results

When specifying headers for network requests on initialize the headers in iOS seem to not be sent.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: video_playerThe Video Player pluginplatform-iosiOS applications specificallyteam-iosOwned by iOS platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions