{"id":75,"date":"2013-05-26T15:16:51","date_gmt":"2013-05-26T22:16:51","guid":{"rendered":"https:\/\/www.jjkpryde.com\/blog\/?p=75"},"modified":"2016-08-01T21:26:54","modified_gmt":"2016-08-02T04:26:54","slug":"mystery-of-the-disappearing-pdf-files-in-firefox","status":"publish","type":"post","link":"https:\/\/www.jjkpryde.com\/blog\/mystery-of-the-disappearing-pdf-files-in-firefox\/","title":{"rendered":"Mystery of the disappearing PDF files&#8230;in Firefox."},"content":{"rendered":"<p>Google docs provides a clever tool for embedding a PDF viewer in a webpage. I use it for displaying papers within jjkpryde.com .\u00a0 Part of it&#8217;s magic is embedded in an I-Frame.<\/p>\n<p>Recently (for me), Firefox stopped displaying this content, replacing it with a blank html page.\u00a0 Turns out that,\u00a0 Apache must send\u00a0 &#8220;The X-Frame-Options <a title=\"en\/HTTP\" href=\"https:\/\/developer.mozilla.org\/en\/HTTP\">HTTP<\/a> response header&#8221;\u00a0 for Firefox to allow content to be rendered within I-Frames.\u00a0 (see <a title=\"About the X-Frame Header Response for Firefox\" href=\"http:\/\/goo.gl\/yR82o\" target=\"_blank\">http:\/\/goo.gl\/yR82o<\/a> )<\/p>\n<p>Fortunately, this is easily done by adding a .htaccess file to the site root, and once you get around MS Windows grievance with Unix file names, a simple one line text file fixes the problem.<\/p>\n<p>Another day in the life of a web developer.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google docs provides a clever tool for embedding a PDF viewer in a webpage. I use it for displaying papers within jjkpryde.com .\u00a0 Part of it&#8217;s magic is embedded in an I-Frame. Recently (for me), Firefox&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[9],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-about-technology"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p32pSF-1d","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":4,"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jjkpryde.com\/blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}