Skip to content

Commit 21f0f46

Browse files
Added CORS documentation for v3.5
1 parent 613e682 commit 21f0f46

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/_docs/getting-started/configuration.md

+14
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,20 @@ alpine.ldap.team.synchronization=false
239239
# alpine.http.proxy.username=
240240
# alpine.http.proxy.password=
241241

242+
# Optional
243+
# Cross-Origin Resource Sharing (CORS) headers to include in REST responses.
244+
# If 'alpine.cors.enabled' is true, CORS headers will be sent, if false, no
245+
# CORS headers will be sent.
246+
# See Also: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
247+
# The following are default values
248+
#alpine.cors.enabled=true
249+
#alpine.cors.allow.origin=*
250+
#alpine.cors.allow.methods=GET POST PUT DELETE OPTIONS
251+
#alpine.cors.allow.headers=Origin, Content-Type, Authorization, X-Requested-With, Content-Length, Accept, Origin, X-Api-Key, X-Total-Count, *
252+
#alpine.cors.expose.headers=Origin, Content-Type, Authorization, X-Requested-With, Content-Length, Accept, Origin, X-Api-Key, X-Total-Count
253+
#alpine.cors.allow.credentials=true
254+
#alpine.cors.max.age=3600
255+
242256
####################### Dependency-Track Configuration ######################
243257

244258
# Optional

docs/_docs/getting-started/deploy-docker.md

+9
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ services:
7272
# - ALPINE_HTTP_PROXY_PORT=8888
7373
# - ALPINE_HTTP_PROXY_USERNAME=
7474
# - ALPINE_HTTP_PROXY_PASSWORD=
75+
#
76+
# Optional Cross-Origin Resource Sharing (CORS) Headers
77+
# - ALPINE_CORS_ENABLED=true
78+
# - ALPINE_CORS_ALLOW_ORIGIN=*
79+
# - ALPINE_CORS_ALLOW_METHODS=GET POST PUT DELETE OPTIONS
80+
# - ALPINE_CORS_ALLOW_HEADERS=Origin, Content-Type, Authorization, X-Requested-With, Content-Length, Accept, Origin, X-Api-Key, X-Total-Count, *
81+
# - ALPINE_CORS_EXPOSE_HEADERS=Origin, Content-Type, Authorization, X-Requested-With, Content-Length, Accept, Origin, X-Api-Key, X-Total-Count
82+
# - ALPINE_CORS_ALLOW_CREDENTIALS=true
83+
# - ALPINE_CORS_MAX_AGE=3600
7584
image: 'owasp/dependency-track'
7685
ports:
7786
- '80:8080'

0 commit comments

Comments
 (0)