YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.25k stars 410 forks source link

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

Open darren-glanville opened 3 years ago

darren-glanville commented 3 years ago

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.

YahnisElsts commented 3 years ago

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.