forked from MapComplete/MapComplete
		
	Add schema.org to connect-sources
This commit is contained in:
		
							parent
							
								
									f89123d318
								
							
						
					
					
						commit
						49154e1809
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -334,6 +334,7 @@ async function generateCsp(
 | 
			
		|||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    hosts.add("http://www.schema.org") // We add schema.org as it must be http, not https
 | 
			
		||||
    if (hosts.has("*")) {
 | 
			
		||||
        throw "* is not allowed as connect-src"
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1728,7 +1728,7 @@ export default class SpecialVisualizations {
 | 
			
		|||
                        doc: "Attempt to load ld+json from the specified URL. This can be in an embedded <script type='ld+json'>",
 | 
			
		||||
                    },
 | 
			
		||||
                ],
 | 
			
		||||
                needsUrls: [Constants.linkedDataProxy],
 | 
			
		||||
                needsUrls: [Constants.linkedDataProxy, "http://www.schema.org"],
 | 
			
		||||
                constr(
 | 
			
		||||
                    state: SpecialVisualizationState,
 | 
			
		||||
                    tags: UIEventSource<Record<string, string>>,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue