Fix cross-origin integrity (#1871)
See <https://glitch.social/users/bea/updates/434>
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
- content_for :header_tags do
 | 
					- content_for :header_tags do
 | 
				
			||||||
  %script#initial-state{:type => 'application/json'}!= json_escape(render(file: 'home/initial_state', formats: :json))
 | 
					  %script#initial-state{:type => 'application/json'}!= json_escape(render(file: 'home/initial_state', formats: :json))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  = javascript_include_tag 'application', integrity: true
 | 
					  = javascript_include_tag 'application', integrity: true, crossorigin: 'anonymous'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
= react_component 'Mastodon', default_props, class: 'app-holder', prerender: false
 | 
					= react_component 'Mastodon', default_props, class: 'app-holder', prerender: false
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
- content_for :header_tags do
 | 
					- content_for :header_tags do
 | 
				
			||||||
  = javascript_include_tag 'application_public', integrity: true
 | 
					  = javascript_include_tag 'application_public', integrity: true, crossorigin: 'anonymous'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- content_for :content do
 | 
					- content_for :content do
 | 
				
			||||||
  .admin-wrapper
 | 
					  .admin-wrapper
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
- content_for :header_tags do
 | 
					- content_for :header_tags do
 | 
				
			||||||
  = javascript_include_tag 'application_public', integrity: true
 | 
					  = javascript_include_tag 'application_public', integrity: true, crossorigin: 'anonymous'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- content_for :content do
 | 
					- content_for :content do
 | 
				
			||||||
  .container
 | 
					  .container
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,6 @@
 | 
				
			|||||||
  %head
 | 
					  %head
 | 
				
			||||||
    %meta{:charset => 'utf-8'}/
 | 
					    %meta{:charset => 'utf-8'}/
 | 
				
			||||||
    = stylesheet_link_tag 'application', media: 'all'
 | 
					    = stylesheet_link_tag 'application', media: 'all'
 | 
				
			||||||
    = javascript_include_tag 'application_public', integrity: true
 | 
					    = javascript_include_tag 'application_public', integrity: true, crossorigin: 'anonymous'
 | 
				
			||||||
  %body.embed
 | 
					  %body.embed
 | 
				
			||||||
    = yield
 | 
					    = yield
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
- content_for :header_tags do
 | 
					- content_for :header_tags do
 | 
				
			||||||
  = javascript_include_tag 'application_public', integrity: true
 | 
					  = javascript_include_tag 'application_public', integrity: true, crossorigin: 'anonymous'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- content_for :content do
 | 
					- content_for :content do
 | 
				
			||||||
  .container= yield
 | 
					  .container= yield
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user