Sha256: fc4614d5cf03371125ac96d638bd891e1e73685a01dfe6a9dc35ecef73985c2c
Contents?: true
Size: 811 Bytes
Versions: 7
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # This controller is the abstract class from which all other controllers of # this engine inherit. # # Note that it inherits from `Decidim::Components::BaseController`, which # override its layout and provide all kinds of useful methods. class ApplicationController < Decidim::Components::BaseController helper Decidim::Meetings::ApplicationHelper private def add_additional_csp_directives return unless respond_to?(:meeting) || meeting.present? embedded = MeetingIframeEmbedder.new(meeting.online_meeting_url).embed_transformed_url(request.host) return if embedded.blank? content_security_policy.append_csp_directive("frame-src", embedded) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems