This allows the session and cookie options to be dynamically configured during runtime, which is already supported in the websocket options of Phoenix.Endpoint but not supported here. My main use case was setting secure: true in production if using HTTPS behind SSL termination (so it's not automatically set). Example usage:
This allows the session and cookie options to be dynamically configured during runtime, which is already supported in the websocket options of
Phoenix.Endpoint
but not supported here. My main use case was settingsecure: true
in production if using HTTPS behind SSL termination (so it's not automatically set). Example usage: