Skip to content

[Question] flet client storage not working properly on web but works on desktop #1937

Answered by plugeit
plugeit asked this question in Q&A
Discussion options

You must be logged in to vote

The same origin policy for local storage ties the data to the protocol + hostname + port. So even though it's the same code/domain, using a different port would be treated as a separate "origin" by the browser. When re-running flet app it simply ran on a new port each time i re-ran it the port number and due to local storage protocol hostname and port should be same due to which i got the unexpected behaviour.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by plugeit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
1 participant