From 2719d795c9b78eb9af95c9f41fa1d97e29a26b84 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 18 Jun 2019 20:59:17 +0200 Subject: [PATCH] Adapted changed CSRF handling --- alexa_remote_control.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index f6d4eec..d8e1eeb 100644 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -39,6 +39,7 @@ # 2019-02-03: v0.11a fixed string escape for automation and speak commands # 2019-02-10: v0.12 added "-d ALL" to the plain version, lastalexa now checks for SUCCESS activityStatus # 2019-02-14: v0.12a reduced the number of replaced characters for TTS and automation +# 2019-06-18: v0.12c fixed CSRF # ### # @@ -425,7 +426,8 @@ fi # ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "DNT: 1" -H "Connection: keep-alive" -L\ -H "Referer: https://alexa.${AMAZON}/spa/index.html" -H "Origin: https://alexa.${AMAZON}"\ - https://${ALEXA}/api/language > /dev/null + https://${ALEXA}/templates/oobe/d-device-pick.handlebars > /dev/null +# https://${ALEXA}/api/language > /dev/null rm -f "${TMP}/.alexa.login" rm -f "${TMP}/.alexa.header"