dativebase / old-pyramid

Online Linguistic Database (OLD)
http://www.onlinelinguisticdatabase.org/
8 stars 2 forks source link

Allow for configuration of session secure and samesite attributes #50

Closed jrwdunham closed 2 years ago

jrwdunham commented 2 years ago

Fixes 51

Rationale

The samesite cookie attribute needs to be set to None in order for Dative to be able to store OLD cookies when the two apps are on different URLs.

Considerations

In prod, session.secure should be True so that cookies only work over HTTPS. However, in local development doing this will break integration tests.

Changes