Есть ли способ заставить шлюзы приложений (v1 или v2) ответить 403 (или 403.4), когда доступ к ресурсу только HTTPS осуществляется через HTTP?
Перенаправление не требуется.
Прямо сейчас мои запросы истекают:
curl -G -v "http://my-custom-domain/v1/api" --data-urlencode "username=myusername" --data-urlencode "password=secret" --data-urlencode "api-client-key=some-key"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying xx.xxx.xx.xxx...
* TCP_NODELAY set
0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0* connect to xx.xxx.xx.xxx port 80 failed: Timed out
* Failed to connect to my-custom-domain port 80: Timed out
* Closing connection 0
curl: (7) Failed to connect to my-custom-domain port 80: Timed out