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:
commit
bd0d2dba1d
|
@ -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;
|
||||||
|
|
||||||
|
|
Reference in New Issue