N
N
NorroeN2016-10-22 21:45:35
Nginx
NorroeN, 2016-10-22 21:45:35

The problem with X-Frame-Options, what is the cause?

Good afternoon! This is my first time trying to bind a domain name to my test server. Server - Amazon EC2 - Ubuntu 14.04 - Nginx. I took a free domain name on freenom in the *.tk zone. Bind both via dns and elastic ip. There is a problem that cannot be localized. Django is spinning on the server in conjunction with Gunicorn, I go by IP without a port number - it works as it should, I try through the domain name - an empty page, I go through the debugging tools built into the browser and see an incomprehensible page structure and errors in the headers:

Refused to display 'http://52.45.00.00/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

An example of nginx configs .
Tell me, please, at what stage did I make a mistake / did not do everything?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NorroeN, 2016-10-22
@NorroeN

"*" - all.
PS The solution was to set up the Hosted Zone correctly. This tutorial helped me solve the problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question