Skip to content

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
@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

4 participants