Table of Contents

We have compiled fully working examples to answer common questions and user cases. For the most part, the examples are as minimal as possible, but should be complete and runnable solutions.

Page How do I ...
Application mounting ... mount my application at some path above the root?
Authentication ... control authentication and authorization?
Autodiscovery ... autodiscover the components I am using to build my application?
CORS ... configure my application for CORS?
ORM ... use an ORM with Sanic?
"Static" Redirects ... configure static redirects
TLS/SSL/HTTPS ... run Sanic via HTTPS?<br> ... redirect HTTP to HTTPS?