Merge pull request #99 from smi2/master

CORS hearder test
This commit is contained in:
alexey-milovidov 2016-08-31 01:33:46 +04:00 committed by GitHub
commit 4e0fc72505
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1
0
0
0

View File

@ -0,0 +1,4 @@
curl -vsS 'http://localhost:8123/?add_http_cors_header=1' -H "Origin:smi2.ru" --data-binary @- <<< "SELECT 1" 2>&1 | grep -F "< Access-Control-Allow-Origin: *" | wc -l
curl -vsS 'http://localhost:8123/?add_http_cors_header=0' -H "Origin:smi2.ru" --data-binary @- <<< "SELECT 1" 2>&1 | grep -F "< Access-Control-Allow-Origin: *" | wc -l
curl -vsS 'http://localhost:8123/' -H "Origin:smi2.ru" --data-binary @- <<< "SELECT 1" 2>&1 | grep -F "< Access-Control-Allow-Origin: *" | wc -l
curl -vsS 'http://localhost:8123/?add_http_cors_header=1' --data-binary @- <<< "SELECT 1" 2>&1 | grep -F "< Access-Control-Allow-Origin: *" | wc -l