2
0
Эх сурвалжийг харах

Fixes #8019: Exclude metrics endpoint when LOGIN_REQUIRED is true

jeremystretch 4 жил өмнө
parent
commit
45ac1cfd54

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -10,6 +10,7 @@
 * [#8003](https://github.com/netbox-community/netbox/issues/8003) - Fix cable tracing across bridged interfaces with no cable
 * [#8003](https://github.com/netbox-community/netbox/issues/8003) - Fix cable tracing across bridged interfaces with no cable
 * [#8005](https://github.com/netbox-community/netbox/issues/8005) - Fix contact email display
 * [#8005](https://github.com/netbox-community/netbox/issues/8005) - Fix contact email display
 * [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers
 * [#8010](https://github.com/netbox-community/netbox/issues/8010) - Allow filtering devices by multiple serial numbers
+* [#8019](https://github.com/netbox-community/netbox/issues/8019) - Exclude metrics endpoint when `LOGIN_REQUIRED` is true
 
 
 ---
 ---
 
 

+ 1 - 1
netbox/netbox/settings.py

@@ -424,7 +424,7 @@ EXEMPT_PATHS = (
     f'/{BASE_PATH}graphql/',
     f'/{BASE_PATH}graphql/',
     f'/{BASE_PATH}login/',
     f'/{BASE_PATH}login/',
     f'/{BASE_PATH}oauth/',
     f'/{BASE_PATH}oauth/',
-    f'/{BASE_PATH}metrics/',
+    f'/{BASE_PATH}metrics',
 )
 )