Skip to content

Commit bbaf219

Browse files
committed
Removed youtube cookies for cassie
1 parent 5371a4c commit bbaf219

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

src/main/java/org/mskcc/cbio/oncokb/config/SecurityConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void configure(HttpSecurity http) throws Exception {
7070
.accessDeniedHandler(problemSupport)
7171
.and()
7272
.headers()
73-
.contentSecurityPolicy("default-src 'self'; frame-src 'self' https://*.google.com https://www.recaptcha.net https://*.oncokb.org https://*.youtube.com https://*.bilibili.com https://*.gitbook.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com/ https://storage.googleapis.com www.google-analytics.com https://www.googletagmanager.com https://recaptcha.net https://www.gstatic.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: www.google-analytics.com; font-src 'self' data:; connect-src 'self' https://*;")
73+
.contentSecurityPolicy("default-src 'self'; frame-src 'self' https://*.google.com https://www.recaptcha.net https://*.oncokb.org https://*.youtube-nocookie.com https://*.bilibili.com https://*.gitbook.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google.com/ https://storage.googleapis.com www.google-analytics.com https://www.googletagmanager.com https://recaptcha.net https://www.gstatic.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: www.google-analytics.com; font-src 'self' data:; connect-src 'self' https://*;")
7474
.and()
7575
.referrerPolicy(ReferrerPolicyHeaderWriter.ReferrerPolicy.NO_REFERRER_WHEN_DOWNGRADE)
7676
.and()

src/main/webapp/app/shared/utils/UrlUtils.tsx

-16
Original file line numberDiff line numberDiff line change
@@ -283,22 +283,6 @@ export const OncoTreeLink: React.FunctionComponent<{}> = props => {
283283
);
284284
};
285285

286-
export const WebinarLink: React.FunctionComponent<{}> = props => {
287-
return (
288-
<span>
289-
<Linkout
290-
link={getYouTubeLink('regular', YOUTUBE_VIDEO_IDS.WEBINAR_INTRO)}
291-
>
292-
YouTube.com
293-
</Linkout>{' '}
294-
or{' '}
295-
<Linkout link={'https://www.bilibili.com/video/BV1pZ4y1s7ou'}>
296-
bilibili.com
297-
</Linkout>
298-
</span>
299-
);
300-
};
301-
302286
export const getActionableGenesPageLink = (
303287
levels?: string,
304288
sections?: string

src/main/webapp/app/shared/utils/Utils.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ export function isPositionalAlteration(
765765
}
766766

767767
export function getYouTubeLink(type: 'embed' | 'regular', videoId: string) {
768-
return `https://www.youtube.com/${
768+
return `https://www.youtube-nocookie.com/${
769769
type === 'embed' ? 'embed/' : 'watch?v='
770770
}${videoId}`;
771771
}

0 commit comments

Comments
 (0)