일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- GoF 디자인패턴
- goroutine
- argocd
- UnBuffered channel
- GoF
- Buffered channel
- image resizing
- go
- golang
- 시스템 설계
- Bastion Server
- Golines
- 디자인패턴
- 클래스 관계
- Kubernetes
- 알림 시스템
- tenneling
- 윈도우키보드
- Lambda@Edge
- Helm V3
- Live Template
- 컴포지트패턴
- AWS Infra
- Infra
- 대규모 시스템 설계
- notification system
- Logrus
- System Design
- AWS
- gitops
Archives
- Today
- Total
Fall in IT.
Angularjs 에러 Blocked loading resource from url not allowed by $sceDelegate policy 해결방법 본문
프레임워크/Angular Framework
Angularjs 에러 Blocked loading resource from url not allowed by $sceDelegate policy 해결방법
D.Y 2016. 11. 10. 23:02안녕하세요.
오늘은 Angularjs에서 발생하는 "Blocked loading resource from url not allowed by $sceDelegate policy" 에러 해결방법에 대해서 알아보겠습니다.
에러상황
Angularjs에서 AWS S3 비디오 url 사용시 다음과 같은 에러가 발생합니다.
해결방법
- 해당 url이 사용가능하도록 합니다.
<Sample code>app.filter('trusted', ['$sce', function ($sce) { return function(url) { return $sce.trustAsResourceUrl(url); }; }]);
<video controls> <source ng-src="{{feed.mediaList[0] | trusted}}" type="video/mp4"/> </video>
참고
'프레임워크 > Angular Framework' 카테고리의 다른 글
Angular 2 지시자의 종류 (0) | 2017.11.26 |
---|---|
Angular4 폼(Form) 소개와 사용방법 (0) | 2017.11.11 |
Angular2 HTTP(get,post) 사용법 (0) | 2017.03.26 |
AngularJS에서 ng-src reload하는 방법 (0) | 2016.08.30 |
AngularJS 개념 및 기초잡기 (0) | 2016.08.23 |
Comments