✔️ Done with content security policy

pull/617/head
Rick Carlino 2018-01-13 09:44:11 -06:00
parent 553d4e70b8
commit 7675557264
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module FarmBot
config.csp = {
default_src: %w(https: 'self'),
base_uri: %w('self'),
block_all_mixed_content: true,
block_all_mixed_content: false, # :( Some webcam feeds use http://
child_src: %w('self'),
connect_src: [ENV["MQTT_HOST"],
"#{ENV["API_HOST"]}:#{ENV["API_PORT"]}",