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
- HTTP Error 503, the service is unavailable
- Convert HTML to PDF in .NET
- How to re-enable right click so that I can inspect HTML elements in Chrome?
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- What caused the “Unchecked runtime.lastError: The message port closed before a response was received.” warning?
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- How do I POST JSON data with cURL?
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How do I POST JSON data with cURL?
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- How to extract text from a PDF? [closed]
- When adding a JavaScript library, Chrome complains about a missing source map. Why?
- Do I need Content-Type: application/octet-stream for file download?
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- What is a user agent stylesheet?
- Getting “net::ERR_BLOCKED_BY_CLIENT” error on some AJAX calls
- No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- What is a user agent stylesheet?
- Getting “net::ERR_BLOCKED_BY_CLIENT” error on some AJAX calls
- 403 Forbidden vs 401 Unauthorized HTTP responses
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- How to send a header using a HTTP request through a cURL call?
- application/x-www-form-urlencoded or multipart/form-data?
- What is the difference between XAMPP or WAMP Server & IIS?
- Hide scroll bar, but while still being able to scroll
- What is w3wp.exe?
- NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Chrome sendrequest error: TypeError: Converting circular structure to JSON
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- application/x-www-form-urlencoded or multipart/form-data?
- require is not defined? Node.js
- What does ‘IISReset’ do?
- Chrome: Uncaught SyntaxError: Unexpected end of input
- What does ‘IISReset’ do?
- Cannot open local file – Chrome: Not allowed to load local resource
- What does enctype=’multipart/form-data’ mean?
- How to disable JavaScript in Chrome Developer Tools?
- failed to load resource: the server response with a status 500 (internal server error)
- Cannot open local file – Chrome: Not allowed to load local resource
- Possible reason for NGINX 499 error codes
- What does enctype=’multipart/form-data’ mean?
- IIS: Where can I find the IIS logs?
- What is the correct JSON content type?
- Getting Error “Form submission canceled because the form is not connected”
- Recommended way to embed PDF in HTML?
- Getting Error “Form submission canceled because the form is not connected”
- Is there a Google Voice API?
- @ converted to %40 in HTTPPost request
- What is the correct JSON content type?
- What is the correct JSON content type?
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- font-family is inherit. How to find out the font-family in chrome developer pane?
- SBOX_FATAL_MEMORY_EXCEEDED error shown when Chromedriver turned 1800-1900 pages using Selenium
- ERR_INVALID_HTTP_RESPONSE using Angular 7 and ASP.Net Core 2.2 in Google Chrome browser
- This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
- HTTP Error 403.14 – Forbidden – The Web server is configured to not list the contents of this directory
- applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10?
- What does HTTP/1.1 302 mean exactly?
- Access to the path is denied
- SyntaxError: Unexpected Identifier in Chrome’s Javascript console
- Chrome give error **Failed to load resource: net::ERR_NAME_NOT_RESOLVED** while other browser load images
- Running Selenium with Headless Chrome Webdriver
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- Verify return code: 20 when testing OpenSSL
- How to Determine IUSR Password
- What does vary:accept-encoding mean?
- The HTTP request was forbidden with client authentication scheme ‘Anonymous’. The remote server returned an error: (403) Forbidden