Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot store any content #6

Open
vsmelov opened this issue Apr 29, 2018 · 1 comment
Open

Cannot store any content #6

vsmelov opened this issue Apr 29, 2018 · 1 comment

Comments

@vsmelov
Copy link

vsmelov commented Apr 29, 2018

CORS problem appears when try to store any URL.

storeContent('http://google.ru')
undefined
storage.html:1 Failed to load http://google.ru/: Redirect from 'http://google.ru/' to 'http://www.google.ru/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
storage.html:107 Content submission error: Error: Client request error: XHR error
    at XMLHttpRequest.xhr.onerror (ipfs.js:46754)
(anonymous) @ storage.html:107
(anonymous) @ ipfs.js:27199
finish @ ipfs.js:15227
wrapped @ ipfs.js:8914
onError @ ipfs.js:15161
g @ ipfs.js:6180
EventEmitter.emit @ ipfs.js:6096
xhr.onerror @ ipfs.js:46754
XMLHttpRequest.send (async)
ClientRequest._onFinish @ ipfs.js:46758
(anonymous) @ ipfs.js:46639
EventEmitter.emit @ ipfs.js:6093
finishMaybe @ ipfs.js:24600
endWritable @ ipfs.js:24610
Writable.end @ ipfs.js:24580
ClientRequest.end @ ipfs.js:46829
internals.Client.request @ ipfs.js:15291
add @ ipfs.js:27198
storeContent @ storage.html:105
(anonymous) @ VM92:1




storeContent('https://habrahabr.ru')
undefined
storage.html:1 Failed to load https://habrahabr.ru/: Redirect from 'https://habrahabr.ru/' to 'https://habr.com/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
storage.html:107 Content submission error: Error: Client request error: XHR error
    at XMLHttpRequest.xhr.onerror (ipfs.js:46754)
@vsmelov
Copy link
Author

vsmelov commented Apr 29, 2018

The same error with static image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant