I see that when click on live preview of item theme, opens demo of theme, but is not working, is only blank page. If hit x and close frame, all are ok.
I see this on all my themes joomla, wordpress and on other authors.
Somebody know something about this issue?
It’s not an issue with Envato, it’s actually an issue with your server:
Refused to display ‘http://revis.payo-themes.com/’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.
The relevant headers sent back by your server are below - you can find these in the Network tab of your browser’s developer tools:
SAMEORIGIN means other websites, including ThemeForest, cannot embed your site in a frame. You need to either remove this header, or set it to something like:
X-Frame-Options: ALLOW-FROM http://preview.themeforest.net/
Content-Security-Policy: frame-ancestors https://preview.themeforest.net/;
So i need to make in htaccess for all my demos, yes?
I will speak with hosting also, maybe they can make something.
Yes you can change this from htaccess, but these headers aren’t usually there by default, so if you’re not intentionally setting them then it is probably best to speak with your host first.
To whitelist ThemeForest with an .htaccess file, you can write the following line with
Header always append X-Frame-Options "ALLOW-FROM http://preview.themeforest.net/"
Header always append Content-Security-Policy "frame-ancestors https://preview.themeforest.net/;"