Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Refused to frame 'https://www.windy.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' *.windy.com:*".

    Developers
    3
    4
    272
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      raimondsozolins last edited by

      I am doing the project which concludes my WEB developer learning. I have used your webcam API, when I implemented API for the very first time, from the icon popup user could click on the link to get access to the relevant webcam. But my tutor said that the specification has been indicates my project is SPA, and I have to use an iframe tag to show the webcam translations. When I have refactored the code I got the following error :
      Refused to frame 'https://www.windy.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' .windy.com:". Any advice will be highly appreciated.

      Korina 1 Reply Last reply Reply Quote 0
      • Korina
        Korina Administrator @raimondsozolins last edited by

        @raimondsozolins Hello, could you give us specific example about what you are trying to embed?

        Korina

        R 1 Reply Last reply Reply Quote 0
        • R
          raimondsozolins @Korina last edited by

          @korina Hello, Korina! I have tried to embed the video from the webcams. And it appears I have made insufficient parameters in API request and now I have fixed that.
          original request was:
          $ch_11 = curl_init('https://api.windy.com/api/webcams/v2/list/limit=50/country='.$_REQUEST['iso'].'?show=webcams:location,image,url&key=GTF6sZ8uiTdotXLIn5F43DlCvwt2GIby');

          fixed(with the player parameter added):
          $ch_11 = curl_init('https://api.windy.com/api/webcams/v2/list/limit=50/country='.$_REQUEST['iso'].'?show=webcams:location,image,player&key=GTF6sZ8uiTdotXLIn5F43DlCvwt2GIby');

          Thank you and do apologize for the inconvenience

          P 1 Reply Last reply Reply Quote 2
          • P
            pauladonis @raimondsozolins last edited by

            @raimondsozolins Hi I now it is a bit late but I think I am working on the same project that you did and I'm having the same error, I tried to modify the params exactly as you did and still can't figure it out. Could you help me out on this? Cheers!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
            NodeBB & contributors, OSM & contributors, HERE maps
            Terms and Conditions     Privacy Policy