Visit my.sonatype.com for documentation on Nexus Repository version 2.
By default, Nexus Repository 2 remote storage requests ignore all Set-Cookie response headers from proxied repositories.
Nexus Repository 2.11.2 and greater allows some configurability about how cookies are used for remote storage requests.
How To Allow HTTP Cookie Usage Per Remote Storage Host
Nexus Repository 2.11.2 and greater can be configured to allow maintaining cookies of outbound remote storage requests on a host name basis.
- Determine what host names you need to allow cookies for. The host names should case insensitively match the host names configured as part of the remote URL value used in a Proxy Repository.
- Edit
${NEXUS_INSTALL_DIR}/conf/nexus.properties
. Add a property on a new line with a comma separated list of remote host names:
# Comma separated list of hostnames that might benefit from cookies nexus.remoteStorage.useCookiesForHosts=example.com,subdomain.example.com
- Start or restart Nexus Repository for the list of host names to take effect. Nexus Repository will begin to keep an in memory cache of cookie values received from the remote hosts and resend these cookies when appropriate for remote storage requests.