From a6af9b3ad5eb8bd9de5a18331e7a7f741c6c51b9 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 26 Dec 2021 13:40:56 +0000 Subject: [PATCH] Disable CSP on order ticket printing via QZ --- app/controllers/spree/admin/orders_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/spree/admin/orders_controller.rb b/app/controllers/spree/admin/orders_controller.rb index f77ee4070d..c1f1ce10bd 100644 --- a/app/controllers/spree/admin/orders_controller.rb +++ b/app/controllers/spree/admin/orders_controller.rb @@ -16,6 +16,8 @@ module Spree before_action :ensure_distribution, only: :new before_action :require_distributor_abn, only: :invoice + content_security_policy false, only: :print_ticket + respond_to :html, :json def new