2016-11-23 53 views
0

我很難在PouchDB's Working with attachments Page之後顯示爲ngSrc的斑點。我中肯的HTML是:如何從PouchDB附件中顯示恢復的Blob爲ngSrc?

<img src="" ng-src="{{$root.images.myImgNameX}}" alt=""> 

它被編譯成這樣:

<img src="http://localhost:8100/fcba0867-bf49-4fe0-b4f2-3490bb65761f" ng-src="blob:http://localhost:8100/fcba0867-bf49-4fe0-b4f2-3490bb65761f" alt=""> 

但圖像不顯示。但是,如果我複製並粘貼urlng-src我可以看到圖像。 我得到這個錯誤:

:8100/#/app/news:1 Refused to load the image 'blob: http://localhost:8100/754f38af-0246-4b33-85c9-049f6d9ce1df ' because it violates the following Content Security Policy directive: "img-src 'self' data: *".

如何使用,在我的img標籤blob

回答