As per Saturn docs, to have HSTS in Saturn, one needs to specify force_ssl
in the application
:
application {
url ("http://0.0.0.0:" + port.ToString() + "/")
force_ssl
...
}
This works for the deployed version of the web, however it breaks local development. Server does not return responses, in the log it writes Request redirected to HTTPS
and that's all.
Is it possible to force SSL and keep local dev convenient at the same time?