Add test scenario client-tags
[privoxy.git] / tests / cts / client-tags / data / test7
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 <proxy-reply>
10 <data>
11 HTTP/1.1 302 Done dealing with toggle request
12 Location: //config.privoxy.org/client-tags
13 Access-Control-Allow-Origin: http://www.electrobsd.org/
14 Access-Control-Allow-Methods: GET,POST
15 Access-Control-Allow-Headers: X-Requested-With
16 Access-Control-Max-Age: 86400
17 Content-Length: 0
18 X-Ignore-Header: Date
19 Date: Sun, 28 Mar 2021 09:35:05 GMT
20
21 </data>
22 </proxy-reply>
23
24 <client>
25 <server>
26 none
27 </server>
28 <name>
29 Confirm that the cors-allowed-origin directives results in headers being are added to CGI responses.
30 </name>
31 <command>
32 --head --referer http://www.electrobsd.org/ 'http://p.p/toggle-client-tag'
33 </command>
34 </client>
35
36 <verify>
37 </verify>
38 </testcase>