Enable CORS on the accounts' endpoints for registering public keys.

This commit is contained in:
Ivaylo Novakov 2022-03-03 11:15:15 +01:00
parent 9428736118
commit b3cba9fb2d
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@ location /api/register {
proxy_pass http://accounts:3000;
}
location /api/user/pubkey/register {
include /etc/nginx/conf.d/include/cors;
rewrite /api/(.*) /$1 break;
proxy_pass http://accounts:3000;
}
location /api/login {
include /etc/nginx/conf.d/include/cors;