I am facing this error - and it persists after setting
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["POST"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://webui.ipfs.io", "http://127.0.0.1:5001", "https://defluencer.eth.link"]'
and starting the daemon like this:
ipfs daemon --enable-pubsub-experiment --enable-namesys-pubsub