ethersphere / examples-js

Example code how to interact with Swarm
BSD 3-Clause "New" or "Revised" License
5 stars 9 forks source link

Unable to request interface #23

Open Ten-Ou opened 2 years ago

Ten-Ou commented 2 years ago

Bee instance running with API port on 1633 and Debug API port on 1635 and having flag --cors-allowed-origins="*"

It has been set up as required. But it still prompts the error'Access-Control-Allow-Headers' of the CORS preflight response, and the header'user-agent' is not allowed.

AuHau commented 2 years ago

What version of Bee are you running? This is related to a Bee bug, which should be patched in 1.4.1 version though: https://github.com/ethersphere/bee/pull/2684