Skip to content

fix: Remove useless headers#1974

Merged
sirambd merged 1 commit intomainfrom
fix-remove-useless-headers
Mar 9, 2026
Merged

fix: Remove useless headers#1974
sirambd merged 1 commit intomainfrom
fix-remove-useless-headers

Conversation

@sirambd
Copy link
Member

@sirambd sirambd commented Mar 9, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the Authorization: Bearer header from the WebViewClient.shouldOverrideUrlLoading callback in OnlyOfficeActivity. The initial page load at webView.loadUrl(url, headers) retains the authorization header; only subsequent in-editor navigation loads (triggered by shouldOverrideUrlLoading) no longer send it. The headers variable itself is still used for the initial load and remains in scope.

Changes:

  • Removed headers (Authorization Bearer token) from view.loadUrl() calls inside shouldOverrideUrlLoading, keeping only the initial page load authenticated via header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

@sirambd sirambd merged commit e4bf2ed into main Mar 9, 2026
12 checks passed
@sirambd sirambd deleted the fix-remove-useless-headers branch March 9, 2026 16:05
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.

3 participants