Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Yasuke-04 opened this issue Nov 15, 2024 · 0 comments
Open

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

Yasuke-04 opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Yasuke-04
Copy link

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

@Yasuke-04 Yasuke-04 added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant