Skip to content

Commit 6f7f6a9

Browse files
chirag-madlaniRohit0301
authored andcommitted
Chore(config): Add CSP nonce placeholder to Vite configuration (#27568)
1 parent b63489c commit 6f7f6a9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

openmetadata-ui/src/main/resources/ui/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export default defineConfig(({ mode }) => {
3131
// The actual BASE_PATH is injected at runtime by the Java backend via ${basePath} replacement
3232
return {
3333
base: '',
34+
html: {
35+
cspNonce: '${cspNonce}', // Placeholder replaced by Java backend at runtime
36+
},
3437
plugins: [
3538
{
3639
name: 'html-transform',

0 commit comments

Comments
 (0)