Rails 5.2.x,更新为来自 CDN 的 FontAwesome 工具包 - 我需要向我的 CSP 添加什么以允许 css 和字体?

Rails 5.2.x, updated to a FontAwesome kit from CDN - what do I need to add to my CSP to allow css and fonts?

对于将 FontAwesome 从 CDN 更新到工具包(免费版)的任何人,我发现在更新时有一些有用的东西。请务必使用以下内容更新您的 CSP:

将您的套件 src url 添加到 CSP_DIRECTIVE_SCRIPT_SRChttps://kit-free.fontawesome.com 添加到您的 CSP_DIRECTIVE_FONT_SRChttps://kit-free.fontawesome.com/releases/latest/css/free.min.css 添加到您的 CSP_DIRECTIVE_STYLE_SRC