Skip to content

Fix Referrer Policy Issue for HLS Stream Requests: Gogo anime #604

Closed
@Yasuke-04

Description

@Yasuke-04

Describe the bug

The bug involves issues with accessing or playing HLS (HTTP Live Streaming) media due to the Referrer Policy set to strict-origin-when-cross-origin. This policy restricts the information included in the Referer header when making requests to a different origins

Steps to reproduce

Set Up the Environment:

Use a web browser or a media player application that supports HLS streaming (e.g., Chrome, VLC, or a custom video player using react-player or video.js).
Prepare the Streaming URL:

Use the HLS streaming URL, e.g., https://www114.anzeat.pro/streamhls/c7f1e763df1feeb30e59dc2bb7204830/ep.6.1731691175.360.m3u8.
Check Referrer Policy:

Ensure the website or application hosting the player uses the Referrer Policy: strict-origin-when-cross-origin in the HTTP headers or meta tags.
Initiate Playback:

Attempt to play the HLS stream via the video player or directly in the browser's developer tools (use the Network tab to observe the request and response behavior).
Observe the Behavior:

Check for:
Errors in the console (e.g., 403 Forbidden, CORS policy error, or Failed to fetch).
Playback failure or interruptions.
Missing or restricted Referer header in the outgoing request (inspect in the Network tab).
Test Cross-Origin Scenarios:

Host the video player on a different domain or subdomain than the HLS source URL to confirm the issue is related to cross-origin restrictions.

Expected behavior

The HLS stream should load and play seamlessly.

Actual behavior

he playback fails, with errors caused by the Referrer Policy: strict-origin-when-cross-origin or CORS restrictions.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions