我无法从 Amazon S3 URL 下载带有 Angular 锚标记的图像。我错过了什么?
网址
https://s3.amazonaws.com/nationalrx/card/national_test.png
HTML
div(ng-bind-html="trustedHtml")
控制器
$scope.html = '<a target="_self" ng-href="https://s3.amazonaws.com/nationalrx/card/national_test.png" download>Download NOW</a>';
$scope.trustedHtml = $sce.trustAsHtml($scope.html);
配置
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|blob|):/);
$sceProvider.enabled(false) 没有帮助