firebase Hosting Iframe Fehler mit X-Frame-Optionen
Ich muss ein paar Iframe für eine Seite verwenden, die mit Firebase gehostet wird, aber es gibt mir den Fehler X-Frame-Optionen, einer der Iframe ist für eine auf Picasa gehostete Galerie und ein anderes Iframe für ein Kontaktformular (da ich keine E-Mail über senden konnte firebase: ()
hier ist ein Fehler
Refused to display 'https://get.google.com/albumarchive/pwa/11111/album/1111?source=pwa#slideshow/1111' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
jquery.min.js:2 Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://demodomain.com" from accessing a cross-origin frame.
Ich habe das mit firebase.json gemacht, aber es hat nicht funktioniert
"headers": [
{
"source": "**/*",
"headers": [
{"key": "X-Content-Type-Options", "value": "nosniff"},
{"key": "X-Frame-Options", "value": "ALLOW"},
{"key": "X-UA-Compatible", "value": "ie=edge"},
{"key": "X-XSS-Protection", "value": "1; mode=block"}
]
}
]