Can I kuromoji read local file XMLHttpRequest by browserify?
up vote
0
down vote
favorite
I try portiing a electron application with kuromoji to Android WebView by broserify.
Kuromoji npm module is japanese text tokenizer.
This depend on the dictionary local file (directory) in node_modules/ .
But upon CORS error on chromium-browser.
Access to XMLHttpRequest at 'file:///node_modules/kuromoji/dict/base.dat.gz'
from origin 'null' has been blocked by CORS policy:
Cross origin requests are only supported
for protocol schemes: http, data, chrome, chrome-extension, https.
cors browserify
add a comment |
up vote
0
down vote
favorite
I try portiing a electron application with kuromoji to Android WebView by broserify.
Kuromoji npm module is japanese text tokenizer.
This depend on the dictionary local file (directory) in node_modules/ .
But upon CORS error on chromium-browser.
Access to XMLHttpRequest at 'file:///node_modules/kuromoji/dict/base.dat.gz'
from origin 'null' has been blocked by CORS policy:
Cross origin requests are only supported
for protocol schemes: http, data, chrome, chrome-extension, https.
cors browserify
Yeah you can’t use XHR to with afile:
URL to request a local file from the local filesystem.
– sideshowbarker
Nov 9 at 22:23
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I try portiing a electron application with kuromoji to Android WebView by broserify.
Kuromoji npm module is japanese text tokenizer.
This depend on the dictionary local file (directory) in node_modules/ .
But upon CORS error on chromium-browser.
Access to XMLHttpRequest at 'file:///node_modules/kuromoji/dict/base.dat.gz'
from origin 'null' has been blocked by CORS policy:
Cross origin requests are only supported
for protocol schemes: http, data, chrome, chrome-extension, https.
cors browserify
I try portiing a electron application with kuromoji to Android WebView by broserify.
Kuromoji npm module is japanese text tokenizer.
This depend on the dictionary local file (directory) in node_modules/ .
But upon CORS error on chromium-browser.
Access to XMLHttpRequest at 'file:///node_modules/kuromoji/dict/base.dat.gz'
from origin 'null' has been blocked by CORS policy:
Cross origin requests are only supported
for protocol schemes: http, data, chrome, chrome-extension, https.
cors browserify
cors browserify
asked Nov 9 at 15:19
michinari nukazawa
145
145
Yeah you can’t use XHR to with afile:
URL to request a local file from the local filesystem.
– sideshowbarker
Nov 9 at 22:23
add a comment |
Yeah you can’t use XHR to with afile:
URL to request a local file from the local filesystem.
– sideshowbarker
Nov 9 at 22:23
Yeah you can’t use XHR to with a
file:
URL to request a local file from the local filesystem.– sideshowbarker
Nov 9 at 22:23
Yeah you can’t use XHR to with a
file:
URL to request a local file from the local filesystem.– sideshowbarker
Nov 9 at 22:23
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228489%2fcan-i-kuromoji-read-local-file-xmlhttprequest-by-browserify%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Yeah you can’t use XHR to with a
file:
URL to request a local file from the local filesystem.– sideshowbarker
Nov 9 at 22:23