We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8bf8a commit 801891dCopy full SHA for 801891d
apps/common/middleware/doc_headers_middleware.py
@@ -115,7 +115,8 @@
115
116
class DocHeadersMiddleware(MiddlewareMixin):
117
def process_response(self, request, response):
118
- if request.path.startswith('/doc/') or request.path.startswith('/doc_chat/'):
+ if request.path.startswith(CONFIG.get_admin_path() + '/api-doc/') or request.path.startswith(
119
+ CONFIG.get_chat_path() + '/api-doc/'):
120
auth = request.COOKIES.get('Authorization')
121
if auth is None:
122
return HttpResponse(content)
0 commit comments