From 63d9fb46e70e8033a9eeb81076ebe6e9757fb53f Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Mon, 16 Oct 2017 13:23:19 +0100 Subject: [PATCH] remove ip restrictions from sms delivery receipts for now our research mode tasks were hitting these endpoints, and getting 403s, causing lots of unexpected exceptions. --- app/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 1e0ce73ab..31a601f3c 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -117,9 +117,13 @@ def register_blueprint(application): ses_callback_blueprint.before_request(requires_no_auth) application.register_blueprint(ses_callback_blueprint) - sms_callback_blueprint.before_request(restrict_ip_sms) + # delivery receipts + # TODO: make sure research mode can still trigger sms callbacks, then re-enable this + # sms_callback_blueprint.before_request(restrict_ip_sms) + sms_callback_blueprint.before_request(requires_no_auth) application.register_blueprint(sms_callback_blueprint) + # inbound sms receive_notifications_blueprint.before_request(restrict_ip_sms) application.register_blueprint(receive_notifications_blueprint)