Sha256: d441e56116194453fc63dd7c2e3ab31dde004076926be820789725b18e146236
Contents?: true
Size: 810 Bytes
Versions: 7
Compression:
Stored size: 810 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_addtional_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