test: CORS is enabled by default
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jun 1, 2016 at 19:05 UTC
c0393383fdcd57d074ac3e13e76ecc4f7c4ca72d
1 file changed
-4
test/sharness/t0112-gateway-cors.sh
-4
@@ -7,10 +7,6 @@
7
test_description="Test HTTP Gateway CORS Support"
8
9
test_config_ipfs_cors_headers() {
10
- ipfs config --json Gateway.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
11
- ipfs config --json Gateway.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
12
- ipfs config --json Gateway.HTTPHeaders.Access-Control-Allow-Headers '["X-Requested-With"]'
13
-
10
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
11
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
12
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Headers '["X-Requested-With"]'