【发布时间】:2021-03-28 13:36:05
【问题描述】:
如何解决 CORS 问题
当我运行代码我得到 CORS 错误
CORS 策略已阻止从源“http://localhost:4200”访问“http://xyz/signed/12172020.pdf”处的 XMLHttpRequest:跨源请求仅支持协议方案:http , 数据, chrome, chrome-extension, chrome-untrusted, https.
【问题讨论】:
-
您是否在后端设置了 CORS 策略以访问 pdf 文件?
标签: angular ngx-extended-pdf-viewer