claudehohl / Stikked

An advanced and beautiful pastebin written in PHP
991 stars 220 forks source link

Blank Page on embed iframe Code #530

Closed Happyfeet01 closed 5 years ago

Happyfeet01 commented 5 years ago

Hello,

i would integrate some Paste´s on my Wordpress Blog. But i only get a white Page when i insert the Code into my Blogpost.

When i insert an other Website it works.

Happyfeet01 commented 5 years ago

Any idea @claudehohl

claudehohl commented 5 years ago

Hard to tell in a vacuum. Do you have an actual page where the iframe is embedded so that I can take a look too?

Happyfeet01 commented 5 years ago

Look here https://dasnetzundich.de/testpage-for-irames/

This Code is insert:

The-Compiler commented 5 years ago

@Happyfeet01 Neither iframe there works for me. It looks like your server (as well as Google) sends X-Frame-Options: SAMEORIGIN which disallows embedding the website in a frame (see docs)

Happyfeet01 commented 5 years ago

Okay thanks

I look at my settings

add_header X-Frame-Options ""; add_header X-XSS-Protection "1; mode=block" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "no-referrer-when-downgrade" always; add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always; add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload" always;

Happyfeet01 commented 5 years ago

Found the settings,fixed.