On 05/03/18 20:31, V_Reddy wrote:
> Hi,
> I am still struggling with accessing the ZAP API through UI while hosting
> the ZAP in a Docker container on my mac.
>
> Here's the command that I am using -
>
> docker run -p 8090:8090 -i owasp/zap2docker-stable zap.sh -daemon -port 8090
> -host 0.0.0.0 -config api.disablekey=true
>
> Also, tried this command -
>
> docker run -p 8090:8090 -i owasp/zap2docker-stable zap.sh -daemon -port 8090
> -host 0.0.0.0 -config api.disablekey=true -config
api.addrs.addr.name=172.17
> .0.*
>
> Ultimately, I keep getting the exception as -
> ZAP-ProxyThread-20] WARN org.zaproxy.zap.extension.api.API - Request to
> API URL
http://localhost:8090/UI from 172.17.0.1 not permitted
> or
> ZAP-ProxyThread-20] WARN org.zaproxy.zap.extension.api.API - Request to
> API URL
http://127.0.0.1:8090/UI from 172.17.0.1 not permitted
>