Chrome扩展程序 - 使用src标记加载图片错误:无法加载资源:net :: ERR_UNKNOWN_URL_SCHEME

时间:2018-02-08 04:30:44

标签: javascript angular xss angular2-template

我有这个HTML:

<mat-card-content>
   <img mat-card-image src="{{userProfilePictureURL}}">
</mat-card-content>

也设置了userProfilePictureURL:

chrome.extension.getURL('dist/assets/images/anonymoose.png')

是:

chromeextension://omelijcoklpokoeobkpepoipjpbakoeo/dist/assets/images/anonymoose.png 

我在控制台中收到此错误:

Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME

也许我需要清理网址?

0 个答案:

没有答案