Skip to content

Commit

Permalink
Change default of RESTRICT_APIS_ONLY to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Nov 21, 2024
1 parent 448e885 commit a788673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comfy/ai-agent-extension/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def simple_api_key_auth(request, handler):
is_authorized = True


restrict_apis_only = os.getenv('RESTRICT_APIS_ONLY', 'false').lower() == 'true'
restrict_apis_only = os.getenv('RESTRICT_APIS_ONLY', 'true').lower() == 'true'
if path != '/prompt' and not path.startswith('/api/prompt') and restrict_apis_only and is_authorized is False:
is_authorized = True

Expand Down

0 comments on commit a788673

Please sign in to comment.