docs: added missing CORS headers for regular keycloak access via AJAX (#304)

This commit is contained in:
Alexander Wolz 2023-05-13 10:02:56 +02:00 committed by GitHub
parent ba322e076f
commit bc80050a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ server {
add_header WWW-Authenticate 'Basic realm="Keycloak login"' always;
return 401;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Methods "OPTIONS, GET" always;
add_header Access-Control-Allow-Headers "Content-Type, Accept, Authorization" always;
add_header Access-Control-Allow-Credentials true always;
proxy_pass $keycloak;
}