T
T
triggerfinger2017-12-30 20:59:53
Nginx
triggerfinger, 2017-12-30 20:59:53

How to prevent embedding via iframe?

How do I prevent my site from being embedded via iframe to other sites?

I added nginx to the config add_header X-Frame-Options "SAMEORIGIN";but it didn't work.

APD: solved. The title helped, it's just that my page was cached.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-12-30
@triggerfinger

https://developer.mozilla.org/en-US/docs/Web/HTTP/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question