Support authorization for swwager ui (same as rapidoc, elements)
duchuyvp opened this issue · comments
Nguyễn Đức Huy commented
Nguyễn Đức Huy commented
I found the solution. I need to add config for attribute "security_schemes" when init the APIFlask app
app.security_schemes = [
'ApiKeyAuth': {
'type': 'apiKey',
'in': 'header',
'name': 'X-API-Key'
}
]