bodhiprice / meta-scraper

A utility for grabbing the meta tags from a web page.
https://www.npmjs.com/package/meta-scraper
6 stars 5 forks source link

Can meta-scraper be used on a client-side app? #6

Open onsombal opened 6 years ago

onsombal commented 6 years ago

I'm creating a Vue.js-2.0 client-side app that uses axios to connect to a backend server-side app. The example below works perfectly in "RunKit + npm", but I get the following error returned when I use the same example in my vue.js app.

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.33.10:8080' is therefore not allowed access.

Must meta-scraper be run from the server-side?

If no, please suggest a way for me to avoid the CORS error on the client-side.

Thanks... Jim