Skip to content
Snippets Groups Projects
Commit 3f4ac7cb authored by David Douard's avatar David Douard
Browse files

api/graph: use a more generic UNAUTHENTICATED_HOSTS config to check access to graph API

Replace usage of the hardcoded and swh specific
SWH_WEB_INTERNAL_SERVER_NAMES by a more generic UNAUTHENTICATED_HOSTS
config option to bypass authentication for the graph public APIs.

This uses the same validation logic as django's ALLOWED_HOSTS one.
parent 8738a04d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment