2015-06-09 9 views
10

Im cercando di impostare i AMMESSI-DA in Nginx, ma tutte le impostazioni che ho provato finora provocato il seguente errore Chrome: Invalid 'X-Frame-Options' header encountered when loading 'https://domain.com/#/register': 'ALLOW-FROM domain.com' is not a recognized directive. The header will be ignored.Come impostare X-Frame-Options allow-Da di nginx correttamente

Questa opzione I provato sono quelli: (provato anche con nome di dominio completo con https:// prefisso)

add_header X-Frame-Options "Allow-From domain.com"; 
    add_header X-Frame-Options "ALLOW-FROM domain.com"; 
    add_header X-Frame-Options "ALLOW-FROM: domain.com"; 
    add_header X-Frame-Options "Allow-From: domain.com"; 
    add_header X-Frame-Options ALLOW-FROM "domain.com"; 
    add_header X-Frame-Options ALLOW-FROM domain.com; 
+1

Chrome non supporta 'allow-from'. https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options#Browser_compatibility –

risposta

Problemi correlati