Leela-Consultancy / PPDMChromeExt

0 stars 0 forks source link

Show the description of the site with each URL using any API #3

Open TreesaPuravathanPoulose opened 1 year ago

TreesaPuravathanPoulose commented 1 year ago

When I tried to extract the websites description using meta tag I got some privacy issues or some errors. Like CORS [Cross origin resource Sharing] is not allowed for the sites. That means these sites or URLs does not allow cross-origin requests from my Chrome extension.

Image

TreesaPuravathanPoulose commented 1 year ago

I am trying another method to fetch website details. Now i am using an API "https://www.opengraph.io/". for extract data.

I created an account in my name to get an account on opengraph.io

Image

TreesaPuravathanPoulose commented 1 year ago

I am learning documentation of opengraph.io to implement that API in my Chrome Extension

Image

TreesaPuravathanPoulose commented 1 year ago

When I am trying to fetch cookies, policies and description using pure JavaScript

error-CORS1

I am getting CORS error. Tried different method's But same error is happening.

TreesaPuravathanPoulose commented 1 year ago

fixing a CORS error in JavaScript can be done by using a proxy server, enabling CORS on the remote server