Merge pull request #1825 from SkynetLabs/enable-cors-pubkey-registration-endpoints

Enable CORS on the accounts' endpoints for registering public keys.
This commit is contained in:
Marcin S 2022-03-03 17:43:13 +00:00 committed by GitHub
commit bd0d2dba1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@ location /api/register {
proxy_pass http://accounts:3000; 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 { location /api/login {
include /etc/nginx/conf.d/include/cors; include /etc/nginx/conf.d/include/cors;