Skip to content

Commit 51f83e4

Browse files
committed
fix frameworks csp issues
1 parent 69001ec commit 51f83e4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

apps/demos/utils/server/csp-server.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const CSP_DEMO_ALLOWLIST = {
3434
'Button/Icons': {
3535
'font-src': ['https://maxcdn.bootstrapcdn.com'],
3636
},
37+
'CardView/WebAPIService': {
38+
'img-src': ['data:'],
39+
},
3740
// Azure Maps SDK: inline styles, blob workers, data: images,
3841
// and font glyphs from atlas.microsoft.com
3942
Map: {
@@ -50,6 +53,9 @@ const CSP_DEMO_ALLOWLIST = {
5053
'Charts/SignalRService': {
5154
'connect-src': ['wss://js.devexpress.com'],
5255
},
56+
'Charts/SpiderWeb': {
57+
'font-src': ['https://fonts.gstatic.com'],
58+
},
5359
'Common/ListsOverview': {
5460
'img-src': ['data:'],
5561
},
@@ -107,11 +113,11 @@ const CSP_DEMO_ALLOWLIST = {
107113
Diagram: {
108114
'img-src': ['data:'],
109115
},
110-
FilterBuilder: {
116+
Drawer: {
111117
'font-src': ['https://maxcdn.bootstrapcdn.com'],
112118
},
113-
'Charts/SpiderWeb': {
114-
'font-src': ['https://fonts.gstatic.com'],
119+
FilterBuilder: {
120+
'font-src': ['https://maxcdn.bootstrapcdn.com'],
115121
},
116122
FileManager: {
117123
'img-src': ['data:'],

0 commit comments

Comments
 (0)