Repository navigation
π¨ Palette: Swagger UIμμ μΈμ¦ ν ν° μ μ§λλλ‘ κ°λ°μ κ²½ν(DX) κ°μ #785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
22daa6d
3faeba4
81af0c8
1adc7f0
5cb3d60
e40c583
b299897
e1dd1a3
319b1a0
dc01238
59f75d6
32c835e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -319,6 +319,7 @@ def create_app( | |
| openapi_tags=tags_metadata, | ||
| swagger_ui_parameters={ | ||
| "displayRequestDuration": True, | ||
| "persistAuthorization": True, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π Security & Privacy | π Major | β‘ Quick win π§© Analysis chainπ Script executed: #!/bin/bash
printf '%s\n' '--- src/newsdom_api/main.py ---'
sed -n '250,345p' src/newsdom_api/main.py
printf '%s\n' '--- RuntimeProfile and app settings usage ---'
rg -n -A12 -B8 'RuntimeProfile|persistAuthorization|create_app|/docs|POST.*parse|authorization' src/newsdom_api
printf '%s\n' '--- dependency declaration ---'
sed -n '1,30p' pyproject.tomlRepository: ContextualWisdomLab/newsdom-api Length of output: 16390 π Web query:
π‘ Result: In FastAPI 0.115 and other versions, setting the Citations:
Sensitive Data Exposure (CWE-922) Reachability: External Β· Exploitability: Moderate νλ‘λμ
νκ²½μμλ
π€ Prompt for AI Agents |
||
| "syntaxHighlight.theme": "monokai", | ||
| "tryItOutEnabled": True, | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π‘ Swagger μΈμ¦ μ μ§κ° μλνμ§ μμ
Swagger UIλ₯Ό μ΄λ©΄ μ μ CSPκ° CDN μ€ν¬λ¦½νΈμ μ€νμΌμ μ°¨λ¨νλ€.
/docsκ° λ‘λλμ§ μμpersistAuthorizationλ μ μ©λμ§ μλλ€.Prompt for agents
Was this helpful? React with π or π to provide feedback.