[재무재표] 위메이드 사업보고서(2020.12)

읽으면 진짜 재무제표 보이는 책   위메이드 사업보고서(2020.12) [재무상태표] 2020년 12월 31일 현재 (단위: 십억원) 자산 220 부채 22 자본 198

[WPF][WebBrowser] Allow Blocked Content Setting


<현상>
WebBrowser에서 로컬웹문서를 열경우 아래와 같은 보안경고창이 뜬다.

 - 보안을 위해 사용자의 웹 브라우저가 이파일에서 사용자의 컴퓨터를 액세스할수 있는 액티브 콘텐츠를 표시하는 것을 차단했습니다. 옵션을 보려면 여기를 클릭하십시오.


<해결 방법>
Mark of the Web (MOTW)을 웹문서 상단에 추가하면 된다.

1. <!-- saved from url=(0014)about:internet -->
2. <!-- saved from url=(0011)about:blank -->
3. <!-- saved from url=(0016)http://localhost -->
4. <!-- saved from url=(0027)http://imsoli.blogspot.com/ -->

 
* 참고로 url=(####) 의 숫자는 읽어들이는 길이를 나타낸다.
<!-- saved from url=(0016)http://localhost1234 --> => "1234"는 무시한다.


<예제>
Sample.html
 --------------------------------------------------------------------------------
 <!doctype html>
 <!-- saved from url=(0027)http://imsoli.blogspot.com/ -->
 <html>
   <head>
     <title>A Mark of the Web Sample.</title>
   </head>
   <body>
      <p>Hello, Soli's Lab</p>
   </body>
 </html>

 --------------------------------------------------------------------------------


<주의사항>
특정 URL로 MOTW를 추가할 경우, "http://" 를 추가하지 않으면 올바르게 동작하지 않는다.
<!-- saved from url=(0019)imsoli.blogspot.com --> => Not Working


<참조사이트>
Working with WebBrowser in WPF : http://www.dotnetfunda.com/articles/article840-working-with-webbrowser-in-wpf.aspx

WPF WebBrowser Control - Allow Blocked Content Setting : http://social.msdn.microsoft.com/forums/en-US/wpf/thread/f73bb9fa-3252-4c7e-b8e4-6cdad59fd825

Mark of the Web (MOTW) : http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx

댓글

이 블로그의 인기 게시물

[C#][System.IO.Directory.GetFiles] 지정된 폴더의 파일목록 가져오기

[C#] File to Byte Array, Byte Array to File