편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
4번째 줄: | 4번째 줄: | ||
==문제상황== | ==문제상황== | ||
*raw.githubusercontent.com 로 접근하면 거부됨 | *raw.githubusercontent.com 로 접근하면 거부됨 | ||
< | <source lang='html5'> | ||
<link rel="stylesheet" href="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.css"> | <link rel="stylesheet" href="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.css"> | ||
<script src="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js"></script> | <script src="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js"></script> | ||
</ | </source> | ||
{{인용문| | {{인용문| | ||
datetimepicker2.php:1 Refused to execute script from 'http://raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. | datetimepicker2.php:1 Refused to execute script from 'http://raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. | ||
13번째 줄: | 13번째 줄: | ||
==해결방법== | ==해결방법== | ||
* | * http://rawgit.com 에 가서 URL을 입력하면 CDN 주소로 바꿔줌 | ||
* 또는 아래와 같이 수동으로 URL을 바꿔도 사용 | * 또는 아래와 같이 수동으로 URL을 바꿔도 사용 가능<ref>정확하게는... rawgit.com은 non-production판, cdn.rawgit.com은 production판</ref> | ||
:https://github.com/xdan/datetimepicker/blob/master/jquery.datetimepicker.css | :https://github.com/xdan/datetimepicker/blob/master/jquery.datetimepicker.css | ||
:→ https:// | :→ https://cdn.rawgit.com/xdan/datetimepicker/master/jquery.datetimepicker.css | ||
< | <source lang='html5'> | ||
<link rel="stylesheet" href=" | <link rel="stylesheet" href="//cdn.rawgit.com/xdan/datetimepicker/master/jquery.datetimepicker.css"> | ||
<script src="/ | <script src="//cdn.rawgit.com/xdan/datetimepicker/master/jquery.datetimepicker.js"></script> | ||
</ | </source> | ||
==같이 보기== | ==같이 보기== | ||
29번째 줄: | 28번째 줄: | ||
*[[GitHub]] | *[[GitHub]] | ||
*[[CDN]] | *[[CDN]] | ||
==주석== | |||
<references/> | |||
==참고== | ==참고== |