pdf render to asp.net web page results in static title

吃可爱长大的小学妹 提交于 2019-12-02 01:16:05

Your headblock is being cleared by:

Response.ClearContent();

So even if you're setting it in <title>...</title>, you're never sending that to the client.

Given the content type is application/pdf the browser doesn't know how to render the title, so it renders the URL.

Obscurity isn't a form of security, and if you're relying on the user not knowing the Url to prevent them from downloading the file again, you need to rethink. With a network inspection tool they'll easily be able to see which resources they're requesting, even if you do obfuscate the Url.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!