diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-10 15:20:58 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-10 15:20:58 (GMT) |
commit | 9484c653839ef3e8823358ac1e2963d97b056d98 (patch) | |
tree | c591b82c7c97619f2ada5deb48ffdfb4904ecbd9 /apps/samples/miles/miles.scxml | |
parent | a2c45baa7a14e8caa2a8f1c3937a03f4ba9fd8d4 (diff) | |
download | uscxml-9484c653839ef3e8823358ac1e2963d97b056d98.zip uscxml-9484c653839ef3e8823358ac1e2963d97b056d98.tar.gz uscxml-9484c653839ef3e8823358ac1e2963d97b056d98.tar.bz2 |
Get miles invoker operational again
Diffstat (limited to 'apps/samples/miles/miles.scxml')
-rw-r--r-- | apps/samples/miles/miles.scxml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/samples/miles/miles.scxml b/apps/samples/miles/miles.scxml index 7014502..746e37f 100644 --- a/apps/samples/miles/miles.scxml +++ b/apps/samples/miles/miles.scxml @@ -5,9 +5,11 @@ <param name="foo" expr="'asdf'" /> <finalize> <if cond="_event.data.origin"> - <!-- log label="Reply-length" expr="_event.data.base64.length" / --> + <!-- <log label="Reply-length" expr="_event.data.base64.length" /> --> <respond status="200" to="_event.data.origin"> - <header name="Content-Type" value="text/ascii" /> + <header name="Cache-Control" value="no-cache" /> <!-- force IE to actually reload --> + <header name="Content-Type" value="text/plain" /> + <header name="Access-Control-Allow-Origin" value="*" /> <content expr="_event.data.base64" /> </respond> </if> @@ -20,8 +22,8 @@ <script>//dump(_event);</script> <respond status="200" to="_event.origin"> <header name="Access-Control-Allow-Origin" value="*" /> - <header name="Access-Control-Allow-Methods" value="GET, OPTIONS" /> - <header name="Access-Control-Allow-Headers" value="X-Requested-With" /> + <header name="Access-Control-Allow-Methods" value="POST, GET, OPTIONS" /> + <header name="Access-Control-Allow-Headers" value="X-Requested-With, Content-Type" /> </respond> </transition> @@ -36,7 +38,11 @@ <param name="email" expr="_event.data.content.email" /> <param name="problemName" expr="_event.data.content.problemName" /> </send> - <respond status="200" to="_event.origin" /> + <respond status="200" to="_event.origin"> + <header name="Connection" value="close" /> + <header name="Content-Type" value="application/json" /> + <header name="Access-Control-Allow-Origin" value="*" /> + </respond> <elseif cond="_event.data.pathComponent[1] === 'disconnect'" /> <send target="#_miles" event="disconnect"> |