mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 14:08:31 -04:00
More CORS headers settings related to https://github.com/wekan/wekan/pull/2429
Thanks to xet7 !
This commit is contained in:
parent
e540148d09
commit
86e7e1c600
4 changed files with 17 additions and 0 deletions
|
@ -99,6 +99,8 @@ ENV BUILD_DEPS="apt-utils bsdtar gnupg gosu wget curl bzip2 build-essential pyth
|
||||||
LOGOUT_ON_HOURS="" \
|
LOGOUT_ON_HOURS="" \
|
||||||
LOGOUT_ON_MINUTES="" \
|
LOGOUT_ON_MINUTES="" \
|
||||||
CORS="" \
|
CORS="" \
|
||||||
|
CORS_ALLOW_HEADERS="" \
|
||||||
|
CORS_EXPOSE_HEADERS="" \
|
||||||
DEFAULT_AUTHENTICATION_METHOD=""
|
DEFAULT_AUTHENTICATION_METHOD=""
|
||||||
|
|
||||||
# Copy the app to the image
|
# Copy the app to the image
|
||||||
|
|
|
@ -38,6 +38,10 @@
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
# CORS: Set Access-Control-Allow-Origin header. Example: *
|
# CORS: Set Access-Control-Allow-Origin header. Example: *
|
||||||
#export CORS=*
|
#export CORS=*
|
||||||
|
# To enable the Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
|
||||||
|
#export CORS_ALLOW_HEADERS=Authorization,Content-Type
|
||||||
|
# To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *
|
||||||
|
#export CORS_EXPOSE_HEADERS=*
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
## Optional: Integration with Matomo https://matomo.org that is installed to your server
|
## Optional: Integration with Matomo https://matomo.org that is installed to your server
|
||||||
## The address of the server where Matomo is hosted:
|
## The address of the server where Matomo is hosted:
|
||||||
|
|
|
@ -31,6 +31,13 @@ REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3
|
||||||
REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
|
REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
|
||||||
REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
|
REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
|
||||||
|
|
||||||
|
REM # CORS: Set Access-Control-Allow-Origin header. Example: *
|
||||||
|
REM SET CORS=*
|
||||||
|
REM # To enable the Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
|
||||||
|
REM SET CORS_ALLOW_HEADERS=Authorization,Content-Type
|
||||||
|
REM # To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *
|
||||||
|
REM SET CORS_EXPOSE_HEADERS=*
|
||||||
|
|
||||||
REM # Optional: Integration with Matomo https://matomo.org that is installed to your server
|
REM # Optional: Integration with Matomo https://matomo.org that is installed to your server
|
||||||
REM # The address of the server where Matomo is hosted.
|
REM # The address of the server where Matomo is hosted.
|
||||||
REM # example: - MATOMO_ADDRESS=https://example.com/matomo
|
REM # example: - MATOMO_ADDRESS=https://example.com/matomo
|
||||||
|
|
|
@ -56,6 +56,10 @@ function wekan_repo_check(){
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
# CORS: Set Access-Control-Allow-Origin header. Example: *
|
# CORS: Set Access-Control-Allow-Origin header. Example: *
|
||||||
#export CORS=*
|
#export CORS=*
|
||||||
|
# To enable the Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
|
||||||
|
#export CORS_ALLOW_HEADERS=Authorization,Content-Type
|
||||||
|
# To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *
|
||||||
|
#export CORS_EXPOSE_HEADERS=*
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
## Optional: Integration with Matomo https://matomo.org that is installed to your server
|
## Optional: Integration with Matomo https://matomo.org that is installed to your server
|
||||||
## The address of the server where Matomo is hosted:
|
## The address of the server where Matomo is hosted:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue