Closed chhantyal closed 3 years ago
Its not updated, feature is removed and docks are quite outdated so cant find what they replaced it with or anything.
Use this: from secure import Secure
and secure_headers.framework.servertype(response)
for me that is secure_headers.framework.sanic(response)
But it does not fix the fact that the docs are severely outdated.
Thanks @klausmyrseth and @chhantyal for alerting me on the issues with the documentation. I think I have updated all references to old version. (28c4b6e126bcb549e2e942a9b617742c5155ae89)
The new version is supposed to leverage and embrace modern Python language features (including type hints), I would be interested in hearing your opinions of the syntax and API changes and/or any overall feedback!
From Docs here: https://secure.readthedocs.io/en/latest/headers.html
but looks like it changed to: