質問編集履歴
3
エラーメッセージ
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,4 +13,60 @@
|
|
13
13
|
正直、今までにこういったことをしてきていないので何の言語を使用したらいいかなどもわかりません。いろいろ検索した結果、CSSを使用するとでき得るということが分かったため、また、今までに使用してきたHTMLやJavaScriptを使用してできないかと思っています。
|
14
14
|
|
15
15
|
### 補足
|
16
|
-
検索の過程で出てきた[PDF.js](https://github.com/mozilla/pdf.js)を活用したいと考えています。また、[このブログ](https://www.linkcom.com/blog/2019/12/howtouse-pdfjs.html)でPDF.jsについて説明されており、[具体例](https://mozilla.github.io/pdf.js/web/viewer.html)が紹介されているので、同じものにしたいのですが、ソースコードを見て真似してもなぜか上手くいきません。
|
16
|
+
検索の過程で出てきた[PDF.js](https://github.com/mozilla/pdf.js)を活用したいと考えています。また、[このブログ](https://www.linkcom.com/blog/2019/12/howtouse-pdfjs.html)でPDF.jsについて説明されており、[具体例](https://mozilla.github.io/pdf.js/web/viewer.html)が紹介されているので、同じものにしたいのですが、ソースコードを見て真似してもなぜか上手くいきません。
|
17
|
+
|
18
|
+
###エラーについて
|
19
|
+
```
|
20
|
+
Access to XMLHttpRequest at '~/mozilla.github.io/web/locale/locale.properties' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
21
|
+
getL10nData @ viewer.js:14134
|
22
|
+
viewer.js:13755 ~/mozilla.github.io/web/locale/locale.properties not found.
|
23
|
+
(anonymous) @ viewer.js:13755
|
24
|
+
viewer.js:13756 "ja-jp" resource not found
|
25
|
+
(anonymous) @ viewer.js:13756
|
26
|
+
locale/locale.properties:1 Failed to load resource: net::ERR_FAILED
|
27
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-viewThumbnail.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
28
|
+
toolbarButton-viewThumbnail.svg:1 Failed to load resource: net::ERR_FAILED
|
29
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-viewOutline.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
30
|
+
toolbarButton-viewOutline.svg:1 Failed to load resource: net::ERR_FAILED
|
31
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-viewAttachments.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
32
|
+
toolbarButton-viewAttachments.svg:1 Failed to load resource: net::ERR_FAILED
|
33
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-viewLayers.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
34
|
+
toolbarButton-viewLayers.svg:1 Failed to load resource: net::ERR_FAILED
|
35
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-sidebarToggle.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
36
|
+
toolbarButton-sidebarToggle.svg:1 Failed to load resource: net::ERR_FAILED
|
37
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-search.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
38
|
+
toolbarButton-search.svg:1 Failed to load resource: net::ERR_FAILED
|
39
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-pageUp.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
40
|
+
toolbarButton-pageUp.svg:1 Failed to load resource: net::ERR_FAILED
|
41
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-pageDown.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
42
|
+
toolbarButton-pageDown.svg:1 Failed to load resource: net::ERR_FAILED
|
43
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-presentationMode.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
44
|
+
toolbarButton-presentationMode.svg:1 Failed to load resource: net::ERR_FAILED
|
45
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-openFile.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
46
|
+
toolbarButton-openFile.svg:1 Failed to load resource: net::ERR_FAILED
|
47
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-print.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
48
|
+
toolbarButton-print.svg:1 Failed to load resource: net::ERR_FAILED
|
49
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-download.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
50
|
+
toolbarButton-download.svg:1 Failed to load resource: net::ERR_FAILED
|
51
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-bookmark.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
52
|
+
toolbarButton-bookmark.svg:1 Failed to load resource: net::ERR_FAILED
|
53
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-secondaryToolbarToggle.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
54
|
+
toolbarButton-secondaryToolbarToggle.svg:1 Failed to load resource: net::ERR_FAILED
|
55
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-zoomOut.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
56
|
+
toolbarButton-zoomOut.svg:1 Failed to load resource: net::ERR_FAILED
|
57
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-zoomIn.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
58
|
+
toolbarButton-zoomIn.svg:1 Failed to load resource: net::ERR_FAILED
|
59
|
+
viewer.html:1 Access to image at '~/mozilla.github.io/web/images/toolbarButton-menuArrow.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
|
60
|
+
toolbarButton-menuArrow.svg:1 Failed to load resource: net::ERR_FAILED
|
61
|
+
pdf.worker.js:16 Uncaught SyntaxError: Cannot use import statement outside a module
|
62
|
+
viewer.js:14134 #loading_error is undefined.
|
63
|
+
getL10nData @ viewer.js:14134
|
64
|
+
viewer.js:14134 #error_version_info is undefined.
|
65
|
+
getL10nData @ viewer.js:14134
|
66
|
+
viewer.js:14134 #error_message is undefined.
|
67
|
+
getL10nData @ viewer.js:14134
|
68
|
+
pdf.js:2865 Uncaught (in promise) Error: Setting up fake worker failed: "Cannot read property 'WorkerMessageHandler' of undefined".
|
69
|
+
at pdf.js:2865
|
70
|
+
DevTools failed to load SourceMap: Could not load content for ~/mozilla.github.io/build/pdf.js.map: System error: net::ERR_FILE_NOT_FOUND
|
71
|
+
DevTools failed to load SourceMap: Could not load content for ~/mozilla.github.io/web/viewer.js.map: System error: net::ERR_FILE_NOT_FOUND
|
72
|
+
```
|
2
追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,4 +13,4 @@
|
|
13
13
|
正直、今までにこういったことをしてきていないので何の言語を使用したらいいかなどもわかりません。いろいろ検索した結果、CSSを使用するとでき得るということが分かったため、また、今までに使用してきたHTMLやJavaScriptを使用してできないかと思っています。
|
14
14
|
|
15
15
|
### 補足
|
16
|
-
検索の過程で出てきた[PDF.js](https://github.com/mozilla/pdf.js)を活用したいと考えています。
|
16
|
+
検索の過程で出てきた[PDF.js](https://github.com/mozilla/pdf.js)を活用したいと考えています。また、[このブログ](https://www.linkcom.com/blog/2019/12/howtouse-pdfjs.html)でPDF.jsについて説明されており、[具体例](https://mozilla.github.io/pdf.js/web/viewer.html)が紹介されているので、同じものにしたいのですが、ソースコードを見て真似してもなぜか上手くいきません。
|
1
初心者アイコンを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
・ファイルのダウンロードが可能である
|
11
11
|
・画面の拡大・縮小が可能
|
12
12
|
|
13
|
-
正直、今までにこういったことをしてきていないので何の言語を使用したらいいかなどもわかりません。
|
13
|
+
正直、今までにこういったことをしてきていないので何の言語を使用したらいいかなどもわかりません。いろいろ検索した結果、CSSを使用するとでき得るということが分かったため、また、今までに使用してきたHTMLやJavaScriptを使用してできないかと思っています。
|
14
14
|
|
15
15
|
### 補足
|
16
16
|
検索の過程で出てきた[PDF.js](https://github.com/mozilla/pdf.js)を活用したいと考えています。
|