일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- authorizationpolicy
- typescript
- GoF
- AWS
- RDS
- 서비스메쉬
- 오블완
- cosine similarity metric
- 구조체
- golang
- sqs fifo queue
- javascript
- model context protocol
- 디자인패턴
- AI
- GIT
- 2024 톨스토이문학상 수상
- context7
- go
- elasticsearch
- Infra
- goland
- redirect-gateway
- Kubernetes
- esbuild
- 티스토리챌린지
- ssh 에이전트
- 캡슐화
- Intellij
- replication lag
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) 사용법 (1) | 2017.03.26 |
AngularJS에서 ng-src reload하는 방법 (0) | 2016.08.30 |
AngularJS 개념 및 기초잡기 (0) | 2016.08.23 |
Comments