Open AndyMBridges opened 7 years ago
Hey,
You can add extra middleware to browser sync server.
`import proxy from 'http-proxy-middleware'; // see how to use here https://github.com/chimurai/http-proxy-middleware`
middleware: [
proxy(`http://api.flickr.com/services/`, assign({}, proxyConfig)),
]
)
Hi Guys,
I'm having a CORS issue when pulling the flickr api using http.get.
(http://api.flickr.com/services/feeds/photos_public.gne)
Can someone please tell me how to integrate a proxy to bypass this? Would it be within the gulp file or the webpack setup?
Thanks, Andy