The Okta Access Gateway (OAG) managed application downloads PDF files instead of displaying the content in the browser.
- Okta Access Gateway (OAG)
- File download
- Okta Classic Engine
By default, the OAG will overwrite the original Content-Type from application/pdf to application/octet-stream, forcing the browser to download the file instead of displaying its content.
This behavior can be overridden using the following directive in the OAG's application policy:
Headerset Content-Type "application/pdf" "expr=%{resp:Content-Disposition} =~ /filename*?=.*.pdf/"
Such a change will allow the application to display the PDF while downloading other MIME types.
