即使经过消毒,它仍显示不允许加载本地资源-Angular 7

时间:2018-11-28 12:46:56

标签: angular asp.net-core asp.net-core-webapi angular7

即使在清理了图像资源的url之后,仍然无法渲染图像也给了我错误:不允许加载本地资源:

file:///D:/Projects/Test/Test/Images/pant.jpg

这是我的api:

[{"productName":"phone","imagePath":"D:/Projects/Test/Test/Images/pant.jpg"},
 {"productName":"pant","imagePath":"D:/Projects/Test/Test/Images/phone.jpg"}]

0 个答案:

没有答案