Hi Community,
I want to include Iframe while rendering page but while rendering iframe it’s showing me this error in js console:
Refused to display ‘http://[IP]:5050/’ in a frame because it set ‘X-Frame-Options’ to ‘deny’.
Through nginx I can easily add ‘X-Frame-Options’ header option to fix it(production setup, supervisor, nginx), but I don’t how to add the same header in werkzeug (development setup, bench start) in response. I tried using hooks it’s not working:
update_website_context
boot_contextits not working because while boot_context and update_website_context method call I am getting response as None value. [frappe.local.response).
We can also add Standard option in hooks to call a function to update the response headers.
Any Suggestion from community ?
Navdeep