We had object:none in our security policy inside web.config, that was causing chrome to refuse to open it, and pressing f12 in chrome and then click “console” shows the error message.
Changing web.config security policy to object:self fixed the problem
In our case we could open PDFs in firefox and IE but not in Chrome, so Chrome has a stricter implementation of the security policies.
The below is a suggested edit which I have not tested:
You may also find that Chrome has a problem with the header of the name: Content-Type
value: charset=utf-8
. Removing it may fix it.
Also, as you are testing this, make sure that cache is not interfering with the response by keep on changing the request URL to something new sitename/pdfName.pdf?val=1
and then with the next test, ?val=2
and so on…
Related Posts:
- Duplicate headers received from server
- How to Fix ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY in IIS on Windows Server 2016
- Does mobile Google Chrome support browser extensions?
- Chrome theme new tab background does not fill correctly
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- Google Chrome forcing download of “f.txt” file
- What does ==$0 (double equals dollar zero) mean in Chrome Developer Tools?
- “CAUTION: provisional headers are shown” in Chrome debugger
- Where does Chrome keep the SQLite Database file it writes things like stored passwords to?
- Where does Chrome store cookies?
- ResizeObserver – loop limit exceeded
- View google chrome’s cached pictures [closed]
- Proper MIME media type for PDF files
- When running WebDriver with Chrome browser, getting message, “Only local connections are allowed” even though browser launches properly
- Apps, Extensions and scripts cannot be added from this website
- How to make audio autoplay on chrome
- How to disable Google Chrome auto update?
- Chrome Push Notification: This site has been updated in the background
- Where is the new Emulation tab in Chromes console drawer?
- Google Chrome Ignoring Hosts File
- Workaround for Your Flash settings will be kept until you quit Chrome
- Disable developer mode extensions pop up in Chrome
- How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue
- How can I force a hard reload in Chrome for Android
- Difference between Chrome Apps and Extensions
- Chrome’s fonts are too light to read
- Chrome: console.log, console.debug are not working
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Do I need Content-Type: application/octet-stream for file download?
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- How to send a header using a HTTP request through a cURL call?
- application/x-www-form-urlencoded or multipart/form-data?
- What does enctype=’multipart/form-data’ mean?
- Getting Error “Form submission canceled because the form is not connected”
- What is the correct JSON content type?
- font-family is inherit. How to find out the font-family in chrome developer pane?
- What does HTTP/1.1 302 mean exactly?
- What does vary:accept-encoding mean?
- Why does the URL http://a/%%30%30 crash Google Chrome?
- Linking to a pdf file with html
- How do I POST JSON data with cURL?
- How to embed a PDF viewer in a page?
- Manifest is not valid JSON. Line: 1, column: 1, Unexpected token
- ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome
- PHP Fatal error: Call to undefined function mssql_connect()
- Chrome Error: You are using an unsupported command-line flag: –ignore-certifcate-errors. Stability and security will suffer
- How to extract data from a PDF file while keeping track of its structure?
- CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
- Resource interpreted as Document but transferred with MIME type application/zip
- Override USER AGENT STYLE SHEET – Chrome
- ‘Password field is empty’ error when using autofill in Chrome
- Wrong permissions when uploading a file through WordPress | IIS
- WordPress Subdomain MultiSite on localhost XAMPP on :8080 with IIS taking port 80
- Installing wp3.2.1 on IIS; getting empty sessions
- Trying to avoid including wp-load.php
- TCPDF get_post_meta outside the loop
- How does the media library determine if a PDF file has preview images?
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- Building WordPress Plugin Using FPDF – How do you get post content from currently viewed post?
- Admin menu bar dropdown opens when I click on a form element (Chrome) [closed]
- Force PDF download from custom menu?
- Does the 3.4.2 Dashboard have Chrome Frame headers?
- Page not found error shown while installing wordpress on IIS server
- PDF file randomly breaks upon upload
- Admin Panel Slowdown After SSL Verification
- SSL certificate verify failed
- Password Protecting Media
- Added Custom Post Type and the View Option Doesn’t Work
- Embed interactive pdf
- WordPress 3.0.1 on IIS 6 Web Server PermaLink Issues
- Does heavy theme and plugins affect server’s response time? [closed]
- URL Change – Check if Post Exists Before 404
- A link (not in the post) to download a specific PDF file
- Using a .pdf file as a page in wordpress
- strange behaviour with “rin” in brand new installation of 4.6.1 [closed]
- Page redirect to 404 when set Permalink = “Post Name”
- Too Many Redirects – WP-Admin Only
- Will wp_get_attachment_metadata display PDF metadata (eg: keyword, author, description)?
- Pdf visualiser embedded into wordpress website
- Installing plugins on IIS-hosted site [closed]
- PDF Upload from Input Error
- Setup cookie on Chrome even without HTTPS
- FPDF for creating pdf diplomas
- Is there a way to add a featured image to an image/file attachment page?
- ACF Flexible in TCPDF
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- Suddenly got alert when trying to login to admin panel of wordpress
- How do i create a search option for pdf’s only
- Create Custom Post Type PDF File (Like Media) Then Add Searchable Custom Fields
- Multisite subdirectory root not accessible
- Header formatting works for safari but not chrome @media screen size technique on iphone
- How to back-up a database on IIS
- How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)
- Problems with ‘require (./xxx)’ on IIS7.5
- Open all PDF or docx link as iframe
- Custom Search on media files PDF images pages posts