Commit 4fb1a530 authored by Javi Corvi's avatar Javi Corvi
Browse files

enviroment variables and allowed resource url

parent c6e84253
Pipeline #26917 passed with stage
in 2 minutes and 41 seconds
......@@ -59,7 +59,7 @@ import { environment } from '../environments/environment';
OAuthModule.forRoot({
resourceServer: {
//allowedUrls: [environment.apiUrl],
allowedUrls: ["http://localhost:8090/","https://etransafe.bsc.es/"],
allowedUrls: [environment.oauth2_resource_server_allowed_url],
//allowedUrls: [window.location.protocol + '//' + window.location.hostname + '/'],
sendAccessToken: true
}
......
......@@ -12,7 +12,7 @@ export const environment = {
oauth2_issuer: 'http://localhost:8050/auth/realms/oauth2-pretox-local',
oauth2_clientId: 'pretoxtm-app',
oauth2_showDebugInformation: true,
oauth2_resource_server_allowed_url: 'http://localhost:8090'
oauth2_resource_server_allowed_url: 'http://localhost:8090/'
};
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment