Skip to content

Commit 83ffeed

Browse files
Merge branch 'main' into chore-move-repo
2 parents fcabae9 + f60a170 commit 83ffeed

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

edge/security-headers.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ function generateCSP(env, isDevServer) {
4343
'https://api.lfcla.dev.platform.linuxfoundation.org/',
4444
'https://easycla.dev.communitybridge.org/',
4545
'https://easycla.lfx.linuxfoundation.org/',
46-
'https://contributor.easycla.lfx.linuxfoundation.org/'
46+
'https://contributor.easycla.lfx.linuxfoundation.org/',
47+
'https://cmp.osano.com', // Cookie consent management
48+
'https://www.google-analytics.com', // Google Analytics beacons
49+
'https://analytics.google.com', // Google Analytics 4
50+
'https://www.googletagmanager.com', // GTM fetch requests
51+
'https://stats.g.doubleclick.net' // DoubleClick stats
4752
];
4853
let scriptSources = [SELF, UNSAFE_EVAL, UNSAFE_INLINE,
4954
'https://cdn.dev.platform.linuxfoundation.org/lfx-header-v2.js',
@@ -54,7 +59,8 @@ function generateCSP(env, isDevServer) {
5459
'https://cdn.dev.platform.linuxfoundation.org/lfx-footer-no-zone.js',
5560
'https://cdn.staging.platform.linuxfoundation.org/lfx-footer-no-zone.js',
5661
'https://cdn.platform.linuxfoundation.org/lfx-footer-no-zone.js',
57-
'https://cmp.osano.com' // Cookie consent
62+
'https://cmp.osano.com', // Cookie consent
63+
'https://www.googletagmanager.com' // Google Tag Manager for Osano
5864
];
5965

6066
const styleSources = [SELF, UNSAFE_INLINE, 'https://use.fontawesome.com/', 'https://communitybridge.org/'];
@@ -106,7 +112,8 @@ function generateCSP(env, isDevServer) {
106112
'https://linuxfoundation-dev.auth0.com',
107113
'https://linuxfoundation-staging.auth0.com',
108114
'https://linuxfoundation.auth0.com',
109-
'https://sso.linuxfoundation.org/'
115+
'https://sso.linuxfoundation.org/',
116+
'https://cmp.osano.com' // Cookie consent UI iframe
110117
],
111118
'child-src': [],
112119
'media-src': [],

src/app/core/services/cla-contributor.service.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export class ClaContributorService {
5656

5757

5858
getUser(userId: string): Observable<UserModel> {
59-
const url = this.getV3Endpoint('/v3/user-compat/' + userId);
59+
// LG:TODO
60+
const url = this.getV2Endpoint('/v2/user/' + userId);
61+
// const url = this.getV3Endpoint('/v3/user-compat/' + userId);
6062
return this.httpClient.get<UserModel>(url);
6163
}
6264

@@ -71,12 +73,16 @@ export class ClaContributorService {
7173
}
7274

7375
getProject(projectId: string): Observable<ProjectModel> {
74-
const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
76+
// LG:TODO
77+
const url = this.getV2Endpoint('/v2/project/' + projectId);
78+
// const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
7579
return this.httpClient.get<ProjectModel>(url);
7680
}
7781

7882
getUserActiveSignature(userId: string): Observable<ActiveSignatureModel> {
79-
const url = this.getV4Endpoint('/v4/user/' + userId + '/active-signature');
83+
// LG:TODO
84+
const url = this.getV2Endpoint('/v2/user/' + userId + '/active-signature');
85+
// const url = this.getV4Endpoint('/v4/user/' + userId + '/active-signature');
8086
return this.httpClient.get<ActiveSignatureModel>(url);
8187
}
8288

@@ -144,7 +150,9 @@ export class ClaContributorService {
144150
}
145151

146152
getGerritProjectInfo(projectId: string): Observable<ProjectModel> {
147-
const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
153+
// LG:TODO
154+
const url = this.getV2Endpoint('/v2/project/' + projectId);
155+
// const url = this.getV4Endpoint('/v4/project-compat/' + projectId);
148156
return this.httpClient.get<ProjectModel>(url);
149157
}
150158

0 commit comments

Comments
 (0)