Skip to content

Fix "replace http cache" not working in dev#9136

Open
PikachuEXE wants to merge 2 commits into
FreeTubeApp:developmentfrom
PikachuEXE:fix/dev-replace-http-cache-cors
Open

Fix "replace http cache" not working in dev#9136
PikachuEXE wants to merge 2 commits into
FreeTubeApp:developmentfrom
PikachuEXE:fix/dev-replace-http-cache-cors

Conversation

@PikachuEXE
Copy link
Copy Markdown
Member

@PikachuEXE PikachuEXE commented May 14, 2026

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

N/A

Description

Dunno why CORS started to be not working today when testing #9134 (audio format)
Found this in console
image

Screenshots

Testing

  • Start dev
  • Enable Replace HTTP Cache
  • Start random video switch audio format
  • Ensure thumbnail loaded

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

Dunno if new electron version or whatever causing this

@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 14, 2026
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 14, 2026 00:46
Copy link
Copy Markdown
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

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

From the docs:

This method can only be used before the ready event of the app module gets emitted and can be called only once.

https://www.electronjs.org/docs/latest/api/protocol#protocolregisterschemesasprivilegedcustomschemes

I would suggest moving it to the else block on the if prod, that way for release builds it will be called once with both schemes and in dev once with one scheme

@absidue
Copy link
Copy Markdown
Member

absidue commented May 14, 2026

Dunno why CORS started to be not working today

Electron 42, I only fixed the release builds in the electron pr, i should have fixed dev at the same time, sorry.

@PikachuEXE
Copy link
Copy Markdown
Member Author

OK fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: waiting for review For PRs that are complete, tested, and ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants