Refused to frame 'https://www.windy.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' *.windy.com:*".
-
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. -
@raimondsozolins Hello, could you give us specific example about what you are trying to embed?
-
@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
-
@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!