Replace content_security_policy_nonce with content_security_policy_script_nonce.
To avoid an conflict with Rails, and to avoid confusing by twitter's gem overloading the method.
This commit is contained in:
parent
25e9728fae
commit
75ef13b5d1
2 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
%script{nonce: content_security_policy_nonce(:script)}
|
||||
%script{nonce: content_security_policy_script_nonce}
|
||||
:plain
|
||||
$(document).ready(function () {
|
||||
var data = $.parseJSON( "#{escape_javascript(@contacts_json).html_safe}" ),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
= stylesheet_link_tag :poltergeist_disable_transition, media: "all"
|
||||
|
||||
= jquery_include_tag
|
||||
= include_gon(camel_case: true, nonce: content_security_policy_nonce(:script))
|
||||
= include_gon(camel_case: true, nonce: content_security_policy_script_nonce)
|
||||
= yield(:javascript)
|
||||
|
||||
= csrf_meta_tag
|
||||
|
|
|
|||
Loading…
Reference in a new issue