plugin-update-checker icon indicating copy to clipboard operation
plugin-update-checker copied to clipboard

Update details gets "github.com refused to connect." message

Open darren-glanville opened this issue 4 years ago • 1 comments

The update feature is working great, only issue we are getting is when you click on the View version [number] details link, an error message comes up.

Console comes up with the following error: Refused to frame 'https://github.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".

I am using GitHub as our host for the updates using the releases.

darren-glanville avatar Sep 08 '21 09:09 darren-glanville

Is this happening in a theme? For a theme, the "view version details" link displays the details_url in an <iframe>. Judging by the error message, the page that you're using as the details_url doesn't allow the browser to display it in a frame. Since you probably can't change the HTTP headers sent by github.com, you may have to use a different URL here.

YahnisElsts avatar Sep 08 '21 14:09 YahnisElsts