google-news-rss icon indicating copy to clipboard operation
google-news-rss copied to clipboard

CORS on browser

Open benrobey opened this issue 7 years ago • 2 comments

Hey mate,

Are you sure this lib works with browsers? I'm getting some CORS errors in my req's.

image

benrobey avatar Jan 03 '18 10:01 benrobey

@brobey8 Sorry mate, I assumed using a isomorphic fetch would have handled the browser side (wrongful assumption :( ). I believe just adding a no-cors mode within the fetch parameters, will solve this issue. Would you be comfortable testing this within your set-up, and PR-ing it by chance?

within index.js

		const params = {
			method: 'GET',
                        mode: 'no-cors'
		};

brh55 avatar Jan 04 '18 18:01 brh55

same issue in localhost, any option for that?

nilaybrahmbhatt avatar Jul 24 '18 07:07 nilaybrahmbhatt