winhtaikaung / react-tiny-link

Convert your links into rich previews
https://winhtaikaung.github.io/react-tiny-link
259 stars 48 forks source link

react-tiny-link not supporting in IE Edge #25

Closed gopinath-sixt closed 4 years ago

gopinath-sixt commented 5 years ago

This is Good library. This library support in IE Edge? because the content not getting loaded in IE Edge.

winhtaikaung commented 4 years ago

Hi @gopinath-sixt To be honest ,I havent tested with IE Edge, will test it and get back to you

winhtaikaung commented 4 years ago

Hi @gopinath-sixt I've tested with IE,edge on my Mac,

It renders normally

Screenshot 2019-11-20 at 2 14 55 PM
gopinath-sixt commented 4 years ago

Hi @winhtaikaung Thanks for testing.

I have tested from Window IEedge, It was rendering like i have attached. Mostly medium, instagram,facebook rendering like this.

image

winhtaikaung commented 4 years ago

Yes it might be the proxy url error as we use cors-anywhere as default. So it depends on availability of proxy server. Can you try it by spinning up https://github.com/Rob--W/cors-anywhere/ on your server and try it again ?


import { ReactTinyLink } from 'react-tiny-link'

<ReactTinyLink
  cardSize="small"
  showGraphic={true}
  maxLine={2}
  minLine={1}
  url="https://www.amazon.com/Steve-Madden-Mens-Jagwar-10-5/dp/B016X44MKA/ref=lp_18637582011_1_1?srs=18637582011&ie=UTF8&qid=1550721409&sr=8-1"
proxyUrl="Your Proxy url "
/>
gopinath-sixt commented 4 years ago

Hi @winhtaikaung, Now we are fetching the data via our server proxyUrl, response getting perfectly in IE edge but the content not getting rendered in IEEdge. image

Do I need to update anything for IE Edge?

Env: react: 18.6.0 react-dom: 18.6.0 react-tiny-link: 2.0.0 IE Edge: 44.18362.449.0