Comments (2)
That's a good question. I went back to the test in question and I see that I misunderstood the requirement from starlette
's TestClient
. My test needed access to the session cookie on the client side, and I thought that I needed to remove httponly
, but I see that all I needed to do was set cookie_https_only
to False
. I think the flag's name (cookie_https_only
) had led me to believe that it would control the httponly
attribute. But I see that my test works without the middleware I wrote to remove httponly
, so this issue can be closed. Sorry about that!
from starsessions.
This is correct. httponly forbids access to session cookie from JavaScript. Why do you want to disable this in tests?
from starsessions.
Related Issues (20)
- Explore option to store session metadata in session
- Drop `max_age` from cookie and redis backends.
- Replace `redis_key_func` with `prefix`
- Rename `Backend` to `Store`
- Middleware has to have strict defaults.
- Regression on v2: session dict is lost after a redirect using httpx client HOT 4
- Potential issue with default values HOT 1
- Separate rolling time extension from lifetime HOT 1
- Request.session should be typed HOT 2
- aioredis dependency HOT 1
- Issue with SessionAutoloadMiddleware HOT 5
- session invalidation with redis HOT 8
- Session does not work when mounting routes HOT 1
- Cookie deletion does not properly set the domain
- Question: is the `exists` Store method used? HOT 1
- Question about a potentially confusing comment HOT 2
- Accessing session data when using custom store HOT 3
- Proposal: Support dynamic set cookies lifetime for each session when save HOT 7
- Proposal: `starsessions.SessionStore.write` should be passed the `starlette.types.Message` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starsessions.