cloudflare / chanfana

OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!
https://chanfana.pages.dev
MIT License
263 stars 35 forks source link

How to protect OpenAPI docs? #132

Closed patryk-smc closed 3 months ago

patryk-smc commented 4 months ago

We don't want to expose OpenAPI docs to the internet or protect them with cookies. Would that be possible?

G4brym commented 4 months ago

Hey @patryk-smc, the recommended way to protect it, is to use Cloudflare Access as authentication You can learn how to set up it, in the official docs

patryk-smc commented 3 months ago

Thank you!