Files
StudyDiary/20-我的收藏夹/21-浏览器收藏/开发网站/pdf.js/解决pdf.js不支持跨域问题 - 锐洋智能 - 博客园.md
CrazyJasonwell fb40c9b109 add all
2025-10-25 20:35:10 +08:00

17 lines
525 B
Markdown
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
raindrop_id: 670472358
created: 2025-08-30T11:45
updated: 2025-09-22T13:27
---
# Metadata
Source URL:: https://www.cnblogs.com/interdrp/p/12440959.html
---
# 解决pdf.js不支持跨域问题 - 锐洋智能 - 博客园
解决跨域问题 首先直接打开任何一个链接pdf文件是不存在跨域问题的,正是因为pdf.js需要通过ajax以文件流的形式去解析才造成了跨域问题。 当pdf.js从 http://localhost 请求 http://localhost:8081/files/demo.pdf , 很遗憾啊,pdf.j
## Highlights