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

Set a few more headers for local API requests #5339

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Jun 25, 2024

Set a few more headers for local API requests

Pull Request Type

  • Feature Implementation

Description

This adds a few more headers to match YouTube, which should hopefully help make the local API requests look more legitimate.

Testing

Open a video with the local API and check in the dev tools that the /player request has the two headers added in this pull request.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.21.0

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) June 25, 2024 21:01
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 25, 2024
Copy link
Collaborator

@kommunarr kommunarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For those not in the know (like myself), we're currently sending a sec-fetch-mode of cors.

@FreeTubeBot FreeTubeBot merged commit fcee43c into FreeTubeApp:development Jun 26, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 26, 2024
@absidue absidue deleted the local-api-headers branch June 26, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants