oceanprotocol / uploader.js

OCEAN Decentralized Backend Storage js Library
Apache License 2.0
1 stars 0 forks source link

cors issues with frontend #25

Closed EnzoVezzaro closed 1 year ago

EnzoVezzaro commented 1 year ago

when trying to access to the DBS endpoint, I get the following error:

Access to XMLHttpRequest at 'http://localhost:8000/' from origin 'http://localhost:6006' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

this needs to be handle server-side to allow all origins to access the DBS server.

It can be overcome by using a CORS unblocker like CORS Unblock extension

jamiehewitt15 commented 1 year ago

Thanks for testing and reporting this. If it needs to be handled server side, it would need to be done in the https://github.com/oceanprotocol/decentralized_storage_backend repo

EnzoVezzaro commented 1 year ago

opened in DBS repo, closing issue here.