behance-api

Loading Data from Behance API in React Component

前提是你 提交于 2019-12-31 04:08:14
问题 I am trying to load Behance project data via their API. Whether its localhost or prod, I am getting the following error -- Fetch API cannot load XXX. 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:5000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Not sure how to solve

Loading Data from Behance API in React Component

拈花ヽ惹草 提交于 2019-12-02 05:51:41
I am trying to load Behance project data via their API. Whether its localhost or prod, I am getting the following error -- Fetch API cannot load XXX. 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:5000 ' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled. Not sure how to solve for this. My code in the Portfolio component below -- getPortfolio = () => { const USER_ID = `XXX`,