When i simply adding a iframe by java script console then it's throw exception message Load denied by X-Frame-Options: http://localhost:3000/home does not permit cross-origin framing
Then after searching i found to solution by removing header "X-Frame-Obtions" on response in my Rails application i simply add a method.
after_filter :allow_iframe
private def allow_iframe
response.headers.delete "X-Frame-Options"
end
And it's working for me...
No comments:
Post a Comment