error:

ipfs gateway config:

config ~/.ipfs/config
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Methods": [
"PUT",
"GET",
"POST"
],
"Access-Control-Allow-Origin": [
"*"
]
}
},
@shanelau I try to fix the ~/.ipfs/config as the same you, but it still go into the Web UI of IPFS when i run http://local:5001/ipfs/(PeerId)/#. It show me the 403 error.
Same problem ;(
I tried to copy @shanelau's snippet but it seems like this might be a bug with go-ipfs v0.5.0-rc1.
Most helpful comment
config ~/.ipfs/config