mat81black/fastapi-csp-docs

GitHub: mat81black/fastapi-csp-docs

替换 FastAPI 内置文档页面以消除内联脚本和样式,使严格的 Content-Security-Policy 头部能够正常工作。

Stars: 2 | Forks: 0

# FastAPI CSP Docs 文档 [![构建状态](https://static.pigsec.cn/wp-content/uploads/repos/cas/ce/ce733292a922c08274cf5a2096f8fa4cf01023bfa51a36ef6beecaaef371a9d9.svg)](https://github.com/mat81black/fastapi-csp-docs/actions) [![codecov](https://codecov.io/gh/mat81black/fastapi-csp-docs/graph/badge.svg)](https://codecov.io/gh/mat81black/fastapi-csp-docs) [![pypi package](https://img.shields.io/pypi/v/fastapi-csp-docs?color=%2334D058&label=pypi%20package)](https://pypi.org/project/fastapi-csp-docs/) [![受支持的 Python 版本](https://img.shields.io/pypi/pyversions/fastapi-csp-docs.svg?color=%2334D058)](https://pypi.org/project/fastapi-csp-docs/) [![许可证: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) FastAPI 内置的 `/docs`、`/redoc` 和 OAuth2 重定向页面嵌入了内联的 `