mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Merge pull request #1365 from alphagov/vb-route-protection
removed printout of route secret
This commit is contained in:
@@ -48,7 +48,7 @@ def restrict_ip_sms():
|
|||||||
# Check route of inbound sms (Experimental)
|
# Check route of inbound sms (Experimental)
|
||||||
# Temporary custom header for route security
|
# Temporary custom header for route security
|
||||||
if request.headers.get("X-Custom-forwarder"):
|
if request.headers.get("X-Custom-forwarder"):
|
||||||
current_app.logger.info("X-Custom-forwarder {}".format(request.headers.get("X-Custom-forwarder")))
|
current_app.logger.info("X-Custom-forwarder received")
|
||||||
|
|
||||||
# Check IP of SMS providers
|
# Check IP of SMS providers
|
||||||
if request.headers.get("X-Forwarded-For"):
|
if request.headers.get("X-Forwarded-For"):
|
||||||
|
|||||||
Reference in New Issue
Block a user