Skip to content

Commit 7cbcfc7

Browse files
committed
build: fix version picker (#30991)
Attempt at fixing a CORS error for the version picker. (cherry picked from commit c28dcce)
1 parent 6aff47c commit 7cbcfc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/firebase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{
4646
"key": "Content-Security-Policy",
4747
// Keep in sync with `angular.json`.
48-
"value": "upgrade-insecure-requests; default-src 'self'; font-src 'self' https://fonts.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: *; frame-src https://www.youtube.com; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google-analytics.com https://www.googletagmanager.com; child-src 'self' blob:; connect-src 'self' https://material.angular.io https://*.google-analytics.com https://stats.g.doubleclick.net https://api.github.com https://www.googletagmanager.com;"
48+
"value": "upgrade-insecure-requests; default-src 'self'; font-src 'self' https://fonts.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: *; frame-src https://www.youtube.com; media-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google-analytics.com https://www.googletagmanager.com; child-src 'self' blob:; connect-src 'self' https://material.angular.dev https://material.angular.io https://*.google-analytics.com https://stats.g.doubleclick.net https://api.github.com https://www.googletagmanager.com;"
4949
}
5050
]
5151
},

docs/src/app/shared/version-picker/version-picker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {MatMenu, MatMenuItem, MatMenuTrigger} from '@angular/material/menu';
77
import {MatTooltip} from '@angular/material/tooltip';
88
import {normalizedMaterialVersion} from '../normalized-version';
99

10-
const versionUrl = 'https://material.angular.io/assets/versions.json';
10+
const versionUrl = 'https://material.angular.dev/assets/versions.json';
1111

1212
/** Version information with title and redirect url */
1313
interface VersionInfo {

0 commit comments

Comments
 (0)