summaryrefslogtreecommitdiffstats
path: root/_build/static/archives/extend/attachments/20130419/383515dd/attachment.html
blob: 05571216706c3a4632a80ae0a3501daa06d75408 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<tt>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;meta&nbsp;http-equiv=&quot;Content-Type&quot;&nbsp;content=&quot;text/html;&nbsp;charset=Windows-1252&quot;&gt;<br>
&lt;/head&gt;<br>
&lt;body&nbsp;style=&quot;word-wrap:&nbsp;break-word;&nbsp;-webkit-nbsp-mode:&nbsp;space;&nbsp;-webkit-line-break:&nbsp;after-white-space;&nbsp;color:&nbsp;rgb(0,&nbsp;0,&nbsp;0);&nbsp;font-size:&nbsp;14px;&nbsp;font-family:&nbsp;Calibri,&nbsp;sans-serif;&nbsp;&quot;&gt;<br>
&lt;div&gt;&nbsp;&nbsp;When&nbsp;querying&nbsp;to&nbsp;the&nbsp;VM&nbsp;from&nbsp;a&nbsp;browser,&nbsp;is&nbsp;Chrome&nbsp;complaining&nbsp;that&nbsp;it's&nbsp;a&nbsp;cross&nbsp;domain&nbsp;request&nbsp;in&nbsp;the&nbsp;console?&nbsp;Or&nbsp;something&nbsp;else?&nbsp;&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;&nbsp;&nbsp;Is&nbsp;the&nbsp;OPTIONS&nbsp;request&nbsp;firing&nbsp;and&nbsp;failing,&nbsp;or&nbsp;is&nbsp;it&nbsp;the&nbsp;POST&nbsp;that&nbsp;is&nbsp;failing&nbsp;(in&nbsp;the&nbsp;network&nbsp;tab)?&nbsp;&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;&nbsp;&nbsp;If&nbsp;it's&nbsp;working&nbsp;in&nbsp;a&nbsp;cross&nbsp;origin&nbsp;context&nbsp;for&nbsp;you&nbsp;locally&nbsp;across&nbsp;different&nbsp;domains&nbsp;(I.e.,&nbsp;the&nbsp;browser&nbsp;is&nbsp;sending&nbsp;the&nbsp;CORS&nbsp;headers&nbsp;on&nbsp;the&nbsp;request,&nbsp;and&nbsp;you're&nbsp;seeing&nbsp;the&nbsp;right&nbsp;headers&nbsp;on&nbsp;the&nbsp;response,&nbsp;and&nbsp;the&nbsp;browser&nbsp;is&nbsp;handling&nbsp;them&nbsp;properly,&nbsp;such&nbsp;that<br>
&nbsp;you&nbsp;can&nbsp;retrieve&nbsp;the&nbsp;response&nbsp;from&nbsp;your&nbsp;Javascript),&nbsp;then&nbsp;it&nbsp;seems&nbsp;unlikely&nbsp;to&nbsp;be&nbsp;a&nbsp;CORS&nbsp;issue,&nbsp;but&nbsp;maybe&nbsp;a&nbsp;config&nbsp;or&nbsp;proxy&nbsp;or&nbsp;code&nbsp;issue&nbsp;in&nbsp;your&nbsp;handler.&nbsp;&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;span&nbsp;id=&quot;OLK_SRC_BODY_SECTION&quot;&gt;<br>
&lt;div&nbsp;style=&quot;font-family:Calibri;&nbsp;font-size:11pt;&nbsp;text-align:left;&nbsp;color:black;&nbsp;BORDER-BOTTOM:&nbsp;medium&nbsp;none;&nbsp;BORDER-LEFT:&nbsp;medium&nbsp;none;&nbsp;PADDING-BOTTOM:&nbsp;0in;&nbsp;PADDING-LEFT:&nbsp;0in;&nbsp;PADDING-RIGHT:&nbsp;0in;&nbsp;BORDER-TOP:&nbsp;#b5c4df&nbsp;1pt&nbsp;solid;&nbsp;BORDER-RIGHT:&nbsp;medium&nbsp;none;&nbsp;PADDING-TOP:&nbsp;3pt&quot;&gt;<br>
&lt;span&nbsp;style=&quot;font-weight:bold&quot;&gt;From:&nbsp;&lt;/span&gt;Lee&nbsp;Sylvester&nbsp;&lt;&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&gt;[email protected]&lt;/a&gt;&gt;&lt;br&gt;<br>
&lt;span&nbsp;style=&quot;font-weight:bold&quot;&gt;Date:&nbsp;&lt;/span&gt;Friday,&nbsp;April&nbsp;19,&nbsp;2013&nbsp;10:47&nbsp;AM&lt;br&gt;<br>
&lt;span&nbsp;style=&quot;font-weight:bold&quot;&gt;To:&nbsp;&lt;/span&gt;&quot;&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&gt;[email protected]&lt;/a&gt;&quot;&nbsp;&lt;&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&gt;[email protected]&lt;/a&gt;&gt;&lt;br&gt;<br>
&lt;span&nbsp;style=&quot;font-weight:bold&quot;&gt;Subject:&nbsp;&lt;/span&gt;[99s-extend]&nbsp;Cowboy&nbsp;CORS&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;<br>
&lt;div&nbsp;style=&quot;word-wrap:&nbsp;break-word;&nbsp;-webkit-nbsp-mode:&nbsp;space;&nbsp;-webkit-line-break:&nbsp;after-white-space;&nbsp;&quot;&gt;<br>
&lt;div&gt;Hi&nbsp;guys,&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;So,&nbsp;I&nbsp;thought&nbsp;I&nbsp;had&nbsp;this&nbsp;resolved,&nbsp;as&nbsp;I&nbsp;managed&nbsp;to&nbsp;get&nbsp;it&nbsp;working&nbsp;locally,&nbsp;but&nbsp;across&nbsp;different&nbsp;local&nbsp;domains&nbsp;(&lt;a&nbsp;href=&quot;http://test.localhost.com&quot;&gt;test.localhost.com&lt;/a&gt;&nbsp;and<br>
&lt;a&nbsp;href=&quot;http://cowboy.localhost.com&quot;&gt;cowboy.localhost.com&lt;/a&gt;).&nbsp;&nbsp;However,&nbsp;now&nbsp;I've&nbsp;deployed&nbsp;my&nbsp;app&nbsp;to&nbsp;a&nbsp;VM,&nbsp;I&nbsp;simply&nbsp;can't&nbsp;get&nbsp;CORS&nbsp;working&nbsp;in&nbsp;Cowboy.&nbsp;&nbsp;Here's&nbsp;the&nbsp;OPTIONS&nbsp;response&nbsp;from&nbsp;Chrome's&nbsp;console:&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;<br>
&lt;ol&nbsp;class=&quot;outline-disclosure&quot;&nbsp;tabindex=&quot;0&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-size:&nbsp;11px;&nbsp;list-style-type:&nbsp;none;&nbsp;-webkit-padding-start:&nbsp;12px;&nbsp;margin:&nbsp;0px;&nbsp;outline:&nbsp;none;&nbsp;font-family:&nbsp;'Lucida&nbsp;Grande',&nbsp;sans-serif;&nbsp;background-color:&nbsp;rgb(255,&nbsp;255,&nbsp;255);&nbsp;&quot;&gt;<br>
&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Request&nbsp;URL:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
&lt;a&nbsp;href=&quot;http://www.example.com/&quot;&gt;http://www.example.com/&lt;/a&gt;&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Request&nbsp;Method:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
OPTIONS&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Status&nbsp;Code:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
200&nbsp;OK&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;class=&quot;parent&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-12px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;-webkit-user-select:&nbsp;none;&nbsp;font-weight:&nbsp;bold;&quot;&gt;<br>
Request&nbsp;Headers&lt;span&nbsp;class=&quot;header-toggle&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;display:&nbsp;inline;&nbsp;margin-left:&nbsp;30px;&nbsp;font-weight:&nbsp;normal;&nbsp;color:&nbsp;rgb(115,&nbsp;115,&nbsp;115);&quot;&gt;view&nbsp;source&lt;/span&gt;<br>
&lt;ol&nbsp;class=&quot;children&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;position:&nbsp;relative;&nbsp;margin:&nbsp;0px;&nbsp;cursor:&nbsp;default;&nbsp;min-width:&nbsp;100%;&nbsp;padding:&nbsp;2px&nbsp;6px&nbsp;!important;&nbsp;list-style-type:&nbsp;none;&nbsp;-webkit-padding-start:&nbsp;12px;&nbsp;&quot;&gt;<br>
&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Accept:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
*/*&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Accept-Charset:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
ISO-8859-1,utf-8;q=0.7,*;q=0.3&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Accept-Encoding:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
gzip,deflate,sdch&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Accept-Language:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
en-US,en;q=0.8&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Access-Control-Request-Headers:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
origin,&nbsp;method,&nbsp;content-type&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Access-Control-Request-Method:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
POST&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Connection:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
keep-alive&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Host:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
&lt;a&nbsp;href=&quot;http://www.example.com&quot;&gt;www.example.com&lt;/a&gt;&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Origin:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
&lt;a&nbsp;href=&quot;http://test.localhost.com:8889&quot;&gt;http://test.localhost.com:8889&lt;/a&gt;&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Referer:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
&lt;a&nbsp;href=&quot;http://test.localhost.com:8889/&quot;&gt;http://test.localhost.com:8889/&lt;/a&gt;&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
User-Agent:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
Mozilla/5.0&nbsp;(Macintosh;&nbsp;Intel&nbsp;Mac&nbsp;OS&nbsp;X&nbsp;10_8_3)&nbsp;AppleWebKit/537.31&nbsp;(KHTML,&nbsp;like&nbsp;Gecko)&nbsp;Chrome/26.0.1410.65&nbsp;Safari/537.31&lt;/div&gt;<br>
&lt;/li&gt;&lt;/ol&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;class=&quot;parent&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-12px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;-webkit-user-select:&nbsp;none;&nbsp;font-weight:&nbsp;bold;&quot;&gt;<br>
Response&nbsp;Headers&lt;span&nbsp;class=&quot;header-toggle&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;display:&nbsp;inline;&nbsp;margin-left:&nbsp;30px;&nbsp;font-weight:&nbsp;normal;&nbsp;color:&nbsp;rgb(115,&nbsp;115,&nbsp;115);&quot;&gt;view&nbsp;source&lt;/span&gt;<br>
&lt;ol&nbsp;class=&quot;children&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;position:&nbsp;relative;&nbsp;margin:&nbsp;0px;&nbsp;cursor:&nbsp;default;&nbsp;min-width:&nbsp;100%;&nbsp;padding:&nbsp;2px&nbsp;6px&nbsp;!important;&nbsp;list-style-type:&nbsp;none;&nbsp;-webkit-padding-start:&nbsp;12px;&nbsp;&quot;&gt;<br>
&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Access-Control-Allow-Headers:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
Content-Type,&nbsp;X-Requested-With,&nbsp;Origin,&nbsp;Method&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Access-Control-Allow-Methods:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
GET,&nbsp;POST,&nbsp;OPTIONS&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Access-Control-Allow-Origin:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
*&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
connection:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
keep-alive&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
content-length:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
0&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
date:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
Fri,&nbsp;19&nbsp;Apr&nbsp;2013&nbsp;14:40:00&nbsp;GMT&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
server:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
Cowboy&lt;/div&gt;<br>
&lt;/li&gt;&lt;/ol&gt;<br>
&lt;/li&gt;&lt;/ol&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;And&nbsp;then&nbsp;this&nbsp;is&nbsp;the&nbsp;POST&nbsp;response:&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;<br>
&lt;ol&nbsp;class=&quot;outline-disclosure&quot;&nbsp;tabindex=&quot;0&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-size:&nbsp;11px;&nbsp;list-style-type:&nbsp;none;&nbsp;-webkit-padding-start:&nbsp;12px;&nbsp;margin:&nbsp;0px;&nbsp;outline:&nbsp;none;&nbsp;font-family:&nbsp;'Lucida&nbsp;Grande',&nbsp;sans-serif;&nbsp;background-color:&nbsp;rgb(255,&nbsp;255,&nbsp;255);&nbsp;&quot;&gt;<br>
&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&quot;&gt;<br>
&lt;div&nbsp;class=&quot;header-name&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;color:&nbsp;rgb(84,&nbsp;84,&nbsp;84);&nbsp;display:&nbsp;inline-block;&nbsp;margin-right:&nbsp;0.5em;&nbsp;font-weight:&nbsp;bold;&nbsp;vertical-align:&nbsp;top;&nbsp;white-space:&nbsp;pre-wrap;&quot;&gt;<br>
Request&nbsp;URL:&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;<br>
&lt;a&nbsp;href=&quot;http://www.example.com/&quot;&gt;http://www.example.com/&lt;/a&gt;&lt;/div&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;class=&quot;parent&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-12px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;-webkit-user-select:&nbsp;none;&nbsp;font-weight:&nbsp;bold;&quot;&gt;<br>
Request&nbsp;Headers&lt;span&nbsp;class=&quot;header-toggle&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;display:&nbsp;inline;&nbsp;margin-left:&nbsp;30px;&nbsp;font-weight:&nbsp;normal;&nbsp;color:&nbsp;rgb(115,&nbsp;115,&nbsp;115);&quot;&gt;view&nbsp;parsed&lt;/span&gt;<br>
&lt;ol&nbsp;class=&quot;children&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;position:&nbsp;relative;&nbsp;margin:&nbsp;0px;&nbsp;cursor:&nbsp;default;&nbsp;min-width:&nbsp;100%;&nbsp;padding:&nbsp;2px&nbsp;6px&nbsp;!important;&nbsp;list-style-type:&nbsp;none;&nbsp;-webkit-padding-start:&nbsp;12px;&nbsp;&quot;&gt;<br>
&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;span&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;POST<br>
&lt;a&nbsp;href=&quot;http://www.example.com/&quot;&gt;http://www.example.com/&lt;/a&gt;&nbsp;HTTP/1.1&nbsp;Origin:&nbsp;&lt;a&nbsp;href=&quot;http://test.localhost.com:8889&quot;&gt;<br>
http://test.localhost.com:8889&lt;/a&gt;&nbsp;Referer:&nbsp;&lt;a&nbsp;href=&quot;http://test.localhost.com:8889/&quot;&gt;<br>
http://test.localhost.com:8889/&lt;/a&gt;&nbsp;method:&nbsp;POST&nbsp;&lt;a&nbsp;href=&quot;http://www.example.com/&quot;&gt;<br>
http://www.example.com/&lt;/a&gt;&nbsp;HTTP/1.1&nbsp;User-Agent:&nbsp;Mozilla/5.0&nbsp;(Macintosh;&nbsp;Intel&nbsp;Mac&nbsp;OS&nbsp;X&nbsp;10_8_3)&nbsp;AppleWebKit/537.31&nbsp;(KHTML,&nbsp;like&nbsp;Gecko)&nbsp;Chrome/26.0.1410.65&nbsp;Safari/537.31&nbsp;content-type:&nbsp;application/x-www-form-urlencoded&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;<br>
&lt;/li&gt;&lt;li&nbsp;title=&quot;&quot;&nbsp;class=&quot;parent&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-12px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;-webkit-user-select:&nbsp;none;&nbsp;font-weight:&nbsp;bold;&quot;&gt;<br>
Form&nbsp;Data&lt;span&nbsp;class=&quot;header-toggle&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;display:&nbsp;inline;&nbsp;margin-left:&nbsp;30px;&nbsp;font-weight:&nbsp;normal;&nbsp;color:&nbsp;rgb(115,&nbsp;115,&nbsp;115);&quot;&gt;view&nbsp;parsed&lt;/span&gt;<br>
&lt;ol&nbsp;class=&quot;children&nbsp;expanded&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;position:&nbsp;relative;&nbsp;margin:&nbsp;0px;&nbsp;cursor:&nbsp;default;&nbsp;min-width:&nbsp;100%;&nbsp;padding:&nbsp;2px&nbsp;6px&nbsp;!important;&nbsp;list-style-type:&nbsp;none;&nbsp;-webkit-padding-start:&nbsp;12px;&nbsp;&quot;&gt;<br>
&lt;li&nbsp;title=&quot;&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;padding:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;14px;&nbsp;margin-top:&nbsp;1px;&nbsp;margin-left:&nbsp;-2px;&nbsp;word-wrap:&nbsp;break-word;&nbsp;white-space:&nbsp;nowrap;&quot;&gt;<br>
&lt;span&nbsp;class=&quot;header-value&nbsp;source-code&quot;&nbsp;style=&quot;box-sizing:&nbsp;border-box;&nbsp;font-family:&nbsp;Menlo,&nbsp;monospace;&nbsp;white-space:&nbsp;pre-wrap;&nbsp;display:&nbsp;inline;&nbsp;margin-right:&nbsp;100px;&nbsp;word-break:&nbsp;break-all;&nbsp;margin-top:&nbsp;1px;&nbsp;&quot;&gt;data={&quot;Type&quot;:&quot;auth_request&quot;,&quot;Authentication&quot;:&quot;public&quot;,&quot;Authorization&quot;:null,&quot;Domain&quot;:&quot;&lt;a&nbsp;href=&quot;http://www.example.com&quot;&gt;www.example.com&lt;/a&gt;&quot;,&quot;Application&quot;:&quot;test_app&quot;,&quot;Ident&quot;:&quot;lee&quot;}&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;<br>
&lt;/li&gt;&lt;/ol&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;I&nbsp;am&nbsp;setting&nbsp;{&lt;&lt;&quot;Access-Control-Allow-Origin&quot;&gt;&gt;,&nbsp;&lt;&lt;&quot;*&quot;&gt;&gt;}&nbsp;in&nbsp;the&nbsp;headers&nbsp;param&nbsp;of&nbsp;cowboy_req:reply&nbsp;and&nbsp;the&nbsp;cowboy_req:set_resp_header,&nbsp;but&nbsp;neither&nbsp;seems&nbsp;to&nbsp;be&nbsp;working.&nbsp;&nbsp;Can&nbsp;anyone&nbsp;spot&nbsp;what&nbsp;I&nbsp;might&nbsp;be&nbsp;doing&nbsp;wrong?&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;The&nbsp;cowboy_req:set_resp_header&nbsp;is&nbsp;happening&nbsp;in&nbsp;the&nbsp;handle�&nbsp;So&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;<br>
&lt;div&gt;handle(Req,&nbsp;State)&nbsp;-&gt;&lt;/div&gt;<br>
&lt;div&gt;&lt;span&nbsp;class=&quot;Apple-tab-span&quot;&nbsp;style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;Reply&nbsp;=&nbsp;case&nbsp;cowboy_req:method(Req)&nbsp;of&lt;/div&gt;<br>
&lt;div&gt;&lt;span&nbsp;class=&quot;Apple-tab-span&quot;&nbsp;style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;{&lt;&lt;&quot;POST&quot;&gt;&gt;,&nbsp;Req2}&nbsp;-&gt;&lt;/div&gt;<br>
&lt;div&gt;&lt;span&nbsp;class=&quot;Apple-tab-span&quot;&nbsp;style=&quot;white-space:pre&quot;&gt;&lt;/span&gt;Req3&nbsp;=&nbsp;cowboy_req:set_resp_header(&lt;&lt;&quot;Access-Control-Allow-Origin&quot;&gt;&gt;,&nbsp;&lt;&lt;&quot;*&quot;&gt;&gt;,&nbsp;Req2),&lt;/div&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;[snip]&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;div&gt;Thanks,&lt;/div&gt;<br>
&lt;div&gt;Lee&lt;/div&gt;<br>
&lt;div&gt;&lt;br&gt;<br>
&lt;/div&gt;<br>
&lt;/div&gt;<br>
&lt;/div&gt;<br>
&lt;/span&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>

</tt>