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

Prevent clearing fallback header in Web SDK #823

Merged
merged 1 commit into from
May 5, 2024

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented May 3, 2024

What does this PR do?

If the cookie fallback isn't set in local storage, the X-Fallback-Cookies header is set to empty even if the default header has some value set. This change will only set the header if there's a value in local storage to allow developer to set the fallback header if they have a value from somewhere else.

Fixes appwrite/sdk-for-web#64

Test Plan

TBD

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

If the cookie fallback isn't set in local storage, the X-Fallback-Cookies header is set to empty even if the default header has some value set. This change will only set the header if there's a value in local storage to allow developer to set the fallback header if they have a value from somewhere else.
@stnguyen90 stnguyen90 self-assigned this May 4, 2024
@stnguyen90 stnguyen90 requested a review from lohanidamodar May 4, 2024 00:41
@stnguyen90 stnguyen90 marked this pull request as ready for review May 4, 2024 00:41
@lohanidamodar lohanidamodar merged commit b467d49 into master May 5, 2024
34 checks passed
@lohanidamodar lohanidamodar deleted the fix-64-prevent-clearing-fallback-header branch May 5, 2024 01:10
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.

🐛 Bug Report: setting header "X-Fallback-Cookies" gets overwritten on request
3 participants