I've been building up simple react app which shows following crytowat.ch api.
here is my code for redux-observable Epic
const cryptowatchEpic = action$ =>
}).map(response => fetchPriceFilled(response))
XMLHttpRequest cannot load https://api.cryptowat.ch/markets/kraken/btcusd/price. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 405.
You've got it backwards.
The server is the one responsible for sending the
'Access-Control-Request-Origin' header, not the client.
So, in other words, you need server-side access to add those headers there. More info at "No 'Access-Control-Allow-Origin' header is present on the requested resource".