Giter Site home page Giter Site logo

Comments (9)

craigk5n avatar craigk5n commented on June 9, 2024

Yes, this is an intended behavior for security reasons. I'll change the title of this to opting in to allow this.

from webcalendar.

Tharrington86 avatar Tharrington86 commented on June 9, 2024

That would be a great option to include, especially for us legacy users that are embedding the calendars in other webpages.

I am unfamiliar with php but if you could point me in the right direction, I will see what I can come up with.

from webcalendar.

craigk5n avatar craigk5n commented on June 9, 2024

Version 1.9.8 now has an option in Admin Setting under "Site security" where you can set the CSP value to allow use of iframes.

from webcalendar.

Tharrington86 avatar Tharrington86 commented on June 9, 2024

I just tried to upgrade to v1.9.8 and everything went smooth except I still cannot get the calendar to display in an iframe. After I ran the installation wizard, I logged in to the calendar via the direct URL and selected to allow any site to iframe and disabled the origin checking. When trying to view the embedded calendar nothing is displayed and the following is displayed in the console: {IntranetURL} blocked a frame with origin {webCalURL} from accessing a cross-origin frame.

Upon regressing to v1.3.0 the iframe properly displays the calendar again.

from webcalendar.

craigk5n avatar craigk5n commented on June 9, 2024

Can you the Chrome developer tools to inspect the HTTP response header? I'm curious if it is sending the correct headers.

from webcalendar.

Tharrington86 avatar Tharrington86 commented on June 9, 2024

Screenshot 2023-09-18 161952
Screenshot 2023-09-18 162153
Screenshot 2023-09-18 162227

from webcalendar.

craigk5n avatar craigk5n commented on June 9, 2024

Forgot about that bit of code... Hopefully latest commit will fix this: 5e5d0e5

from webcalendar.

Tharrington86 avatar Tharrington86 commented on June 9, 2024

I can confirm that this change does work. I made the modifications and the calendar is now working in an iframe. Thank you!

from webcalendar.

craigk5n avatar craigk5n commented on June 9, 2024

Glad to hear it's working 👍

from webcalendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.