Hi,
Iām playing with ipfs and js-ipfs-api but Iām having problems with configuring Access-Control-Allow-Origin header.
Iāve followed the instructions from official documentation and also from https://github.com/INFURA/tutorials/wiki/IPFS-and-CORS (Iāve set the * instead of some url)but when I try to use js api and read the file I get the following error:
Failed to load https://ipfs.infura.io:5001/api/v0/cat?arg=QmYzWWCvYhqU6d5VvRvVwgbpqM9J3HH8TMbns9UvFSSvBf&stream-channels=true: The āAccess-Control-Allow-Originā header has a value ānullā that is not equal to the supplied origin. Origin ānullā is therefore not allowed access. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the requestās mode to āno-corsā to fetch the resource with CORS disabled.
Any help is really appreciated!