Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to "Export your content" on multiple browsers #8614

Closed
PaszaVonPomiot opened this issue Jun 22, 2017 · 10 comments
Closed

Unable to "Export your content" on multiple browsers #8614

PaszaVonPomiot opened this issue Jun 22, 2017 · 10 comments
Assignees

Comments

@PaszaVonPomiot
Copy link

Issue Summary

I'm not able to export content on Chrome, Comodo Dragon and Edge. It works only on Firefox.
I tried in incognito mode and after clearing cache, cookies etc. with no luck. No error message appears on ghost side. Chrome starts the download but it fails with network error, Edge doesn't even start. Firewalls and antiviruses disable. Tested in incognito as well. Can you replicate this error on your computers?

Steps to Reproduce

  1. Setup ghost beta1 with nginx and SSL from certbot
  2. Try to export content on Chrome, Comodo Dragon or Edge

Technical details:

  • Ghost Version: beta1.0
  • Node Version: v6.11.0
  • OS: Centos 7.3 + nginx + SSL
  • Database: MariaDB
@kirrg001 kirrg001 self-assigned this Jun 22, 2017
@kirrg001
Copy link
Contributor

Hey @PaszaVonPomiot 👋

Thanks again for your reports.

it fails with network error

Could you please provide the details for the network error?

@kirrg001
Copy link
Contributor

@PaszaVonPomiot ping

@PaszaVonPomiot
Copy link
Author

@kirrg001 in Chrome console I've got this:

Refused to display 'https://www.domena.pl/ghost/api/v0.1/db/?access_token=pmZpLJYOkJ…SxFmAslckvnHxlCoQDHQoDw6qpmoQstYtZcVeZd6yascP6uCHMY14OHLoeEvH6gP1nWrLNTQ3u' in a frame because it set 'X-Frame-Options' to 'deny'.vendor.min-56d2d0ba2fb8afe28f7dd921a688a927.js:9 
GET https://www.domena.pl/ghost/api/v0.1/db/?access_token=pmZpLJYOkJ…SxFmAslckvnHxlCoQDHQoDw6qpmoQstYtZcVeZd6yascP6uCHMY14OHLoeEvH6gP1nWrLNTQ3u net::ERR_BLOCKED_BY_RESPONSE

@PaszaVonPomiot
Copy link
Author

In Edge I've got this with "pending" status:

https://domena.pl/ghost/api/v0.1/db/?access_token=2o8JADd357cwvQqGk2HCKakNQ1lAcctdsFqH10dUqdmZZJbMayLFaSv1sp6VoWQXmGR81tAbYlxRd21coB0Q4QsZxVNmwNFZe8KSc62pndyv30FCEARgRJKpahxX7PusUwhgIAIc28Am5mSbyMnA2ucILisS06XrnIRGkUJeBfsioEO5DeRQ2pN2yW1lIua		GET	null			0 s	document

@PaszaVonPomiot
Copy link
Author

Okay, so if I copy the request URL and paste it manually to address bar it works on every browser. But doesn't work when I click the export button.

This is the URL I used:
https://domena.pl/ghost/api/v0.1/db/?access_token=2o8JADd357cwvQqGk2HCKakNQ1lAcctdsFqH10dUqdmZZJbMayLFaSv1sp6VoWQXmGR81tAbYlxRd21coB0Q4QsZxVNmwNFZe8KSc62pndyv30FCEARgRJKpahxX7PusUwhgIAIc28Am5mSbyMnA2ucILisS06XrnIRGkUJeBfsioEO5DeRQ2pN2yW1lIua

@kirrg001
Copy link
Contributor

because it set 'X-Frame-Options' to 'deny'

It looks you have configured X-Frame-Options in your htaccess file or apache/nginx?
This is a server side configuration and should be unrelated to Ghost.

I am not able to reproduce, can you please swing by our slack channel and
ask in the help channel? Thanks 👋!

@PaszaVonPomiot
Copy link
Author

Okay that's correct - in nginx.conf there was:
add_header X-Frame-Options DENY;

I fixed it without harm in https://www.ssllabs.com test results by changing it to:
add_header X-Frame-Options SAMEORIGIN;

Thanks for solving this one!

@ErisDS
Copy link
Member

ErisDS commented Jun 26, 2017

@kirrg001 I believe this issue needs to be reopened.

I have two blogs:

one is running 0.11.9, installed using DO's 1-click image
the other is running 10.0.0-beta.1, installed using ghost-cli

They are both installed on single DO droplets based on ubuntu 16.04
nginx version: nginx/1.10.0 (Ubuntu)

Both of them have the default nginx.conf file, with the singular exception of the addition of the line

client_max_body_size 50m;
after
types_hash_max_size 2048;

(Note: need to raise a question in Ghost-cli about client_max_body_size, either needs to be added or documented)

There is nothing resembling add_header or X-Frame-Options in the nginx.conf file, or the individual virtual hosts on either blog/droplet.

On the 0.11.9 blog, I can export.
On the 1.0.0-beta.1 blog, I cannot export

Refused to display 'https://<blogurl>/ghost/api/v0.1/db/?access_token=xkJgFW6To0bppnZ28lk…L9HUaSFfTjiZIWKn5PZpxE3vHT3KjH8teeclnUaR5g4jUBLKSNQs8trIsfUMg4QXYebQiIlOMk' in a frame because it set 'X-Frame-Options' to 'deny'.
vendor.min-56d2d0ba2fb8afe28f7dd921a688a927.js:9 GET https://<blogurl>/ghost/api/v0.1/db/?access_token=xkJgFW6To0bppnZ28lk…L9HUaSFfTjiZIWKn5PZpxE3vHT3KjH8teeclnUaR5g4jUBLKSNQs8trIsfUMg4QXYebQiIlOMk net::ERR_BLOCKED_BY_RESPONSE

It seems that something has changed in the alpha. It could still be that I am missing some config that the DO image has, but that seems unlikely because a) I can't see it and b) I haven't seen people raise this issue, whereas the client max body config issue gets mentioned all the time.

I don't know if this needs a fix, or if we need to add extra handling to ghost-cli/documentation, but it seems very odd to me that this is suddenly happening now and wasn't before.

@ErisDS ErisDS reopened this Jun 26, 2017
@kirrg001
Copy link
Contributor

Interesting. I just found this https://github.com/TryGhost/Ghost-CLI/blob/master/lib/services/nginx/files/ssl-params.conf#L12. Looks like the CLI sets this when enabling ssl. I would suggest to move this issue over to the CLI 👍

@ErisDS
Copy link
Member

ErisDS commented Jun 26, 2017

Good find! 🎣 OK will do 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants