I keep getting CORS error while using the Docker remote API.
As the Docker documentation mentions, I did set the flag:
"api-cors-header" : "*",
I still do not see the header Access-Control-Allow-Origin: *
set on the response headers.
I am using Docker 1.13 experimental.
Here is my API version:
{
"Version": "1.13.0-rc3",
"ApiVersion": "1.25",
"MinAPIVersion": "1.12",
"GitCommit": "4d92237",
"GoVersion": "go1.7.3",
"Os": "linux",
"Arch": "amd64",
"KernelVersion": "4.8.12-moby",
"Experimental": true,
"BuildTime": "2016-12-06T01:15:44.725283878+00:00"
}
Am I missing anything here?
Based on https://docs.browserless.io/docs/docker.html#enable-cors:
Enable CORS
You can enable cross-origin-resource-sharing with browserless by setting the ENABLE_CORS=true variable. This defaults to false:
$ docker run -e "ENABLE_CORS=true" -p 3000:3000 --restart always -d --name browserless browserless/chrome