Make Angular working with restrictive Content Security Policy (CSP)

前端 未结 3 775
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  Happy的楠姐
    2021-02-03 19:43

    The problem has been solved using last Angular CLI version (starting with 1.0.0-beta.17). The following command serves a working application because it includes a-head-of-time compilation.

    ng serve --prod
    

提交回复
热议问题