X-Frame Option is set to allow but safari shows Refuse to display

…衆ロ難τιáo~ 提交于 2019-12-12 06:49:12

问题


I am working on a application which embeds tableau report in iframe. It runs perfectly on all browsers other than safari. As shown in the 2nd image it shows that error "Refuse to display.." but I have changed all the setting and added X-Frame-Options in my header like this

 HttpContext.Current.Response.Headers.Remove("X-Frame-Options");
    Response.AddHeader("X-Frame-Options", "ALLOWALL");

After adding this in response header it shows X-Frame-Options = AllowAll show in in image 2 but it gives same "Refuse to display error.."

Please let me know where I am going wrong. Please help me. For more info you can read

[link] Tableau Reports not showing in iPhone and iPad in asp.net application


回答1:


I have found out that if you are accessing embedded tableau views in safari or any other browser. If they give the the same error as me shown above. Then You have to check your browser preferences. You need to allow third party cookies to view those embedded views in your application in any device. Here is the link where I found my answer.

http://onlinehelp.tableau.com/current/server/en-us/trusted_auth.htm



来源:https://stackoverflow.com/questions/35349024/x-frame-option-is-set-to-allow-but-safari-shows-refuse-to-display

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!