We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f1882 commit c51bb6aCopy full SHA for c51bb6a
packages/angular/build/src/utils/index-file/index-html-generator.ts
@@ -95,6 +95,9 @@ export class IndexHtmlGenerator {
95
96
// Auto-CSP (as the last step)
97
if (options.autoCsp) {
98
+ if (options.generateDedicatedSSRContent) {
99
+ throw new Error('Cannot set both SSR and auto-CSP at the same time.');
100
+ }
101
this.csrPlugins.push(autoCspPlugin(options.autoCsp.unsafeEval));
102
}
103
0 commit comments