Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-27855

Custom IFrame won't popup for insecure urls because of XFrame options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5
    • Fix Version/s: 11.0
    • Component/s: Web Content
    • Labels:
      None
    • 10 status:
      Please Merge

      Description

      For example, create a custom tool like:

      webapps/sakai-web-tool/tools/wscc.library.xml:

      <?xml version="1.0"?>

      <registration>

      <tool
      id="wscc.library"
      title="WSCC Library"
      description="WSCC Library">

      <configuration name="sakai.properties.url.key" value="wscc.library.url" />
      <configuration name="height" value="800px" />

      <configuration name="reset.button" value="false" type="final" />

      <category name="course" />
      <category name="project" />
      <category name="portfolio" />
      <category name="myworkspace" />

      <!-- Allow this to be set -->
      <configuration name="functions.require" />

      <!-- Allow multiple instances of this tool within one site -->
      <configuration name="allowMultipleInstances" value="false" />

      </tool>

      </registration>

      webapps/sakai-web-tool/WEB-INF/web.xml:

      ...
      <filter-mapping>
      <filter-name>sakai.request</filter-name>
      <servlet-name>wscc.library</servlet-name>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>INCLUDE</dispatcher>
      </filter-mapping>
      ...
      <servlet>
      <servlet-name>
      wscc.library
      </servlet-name>
      <servlet-class>
      org.sakaiproject.web.tool.IFrameAction
      </servlet-class>
      <init-param>
      <param-name>template</param-name>
      <param-value>web/chef_iframe</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
      </servlet>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                baholladay Bryan Holladay
                Reporter:
                baholladay Bryan Holladay
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code