Make Angular working with restrictive Content Security Policy (CSP)

前端 未结 3 736
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 19:05

I cannot make base Angular2 (final) application works with the following restrictive CSP.

default-src \'none\';
script-src \'self\';
style-src \'self\';
font-src          


        
3条回答
  •  天涯浪人
    2021-02-03 19:45

    Using the offline template compiler should fix this.

    http://www.syntaxsuccess.com/viewarticle/offline-compilation-in-angular-2.0 https://github.com/angular/angular/issues/1744

提交回复
热议问题