Comments (6)
I am trying out a sample link in my app which is https://www.google.com/
the package works fine showing the card thumbnail but the showGraphic={true} is not showing any image
but instead giving me this error on the console<ReactTinyLink cardSize="small" showGraphic={true} maxLine={2} minLine={1} url='https://www.google.com/' />
how to show the image?
Hi @unit-002,
You should change your proxy, since cors-anywhere.herokuapp.com stopped serving as an open one since January (see announcement: https://github.com/Rob--W/cors-anywhere/issues/301 ). You can work with cors.bridged instead (see article https://medium.com/bridgedxyz/cors-anywhere-for-everyone-free-reliable-cors-proxy-service-73507192714e), like so:
<ReactTinyLink
cardSize="small"
showGraphic={true}
maxLine={2}
minLine={1}
url='https://www.google.com/'
proxyUrl="https://cors.bridged.cc"
/>
from react-tiny-link.
<ReactTinyLink cardSize="small" showGraphic={true} maxLine={2} minLine={1} url='https://www.google.com/' proxyUrl="https://cors.bridged.cc" />
I will try this thanks
upadate: the preview is displaying now, thanks a lot!
from react-tiny-link.
Thanks, it works fine. :)
from react-tiny-link.
Hi @unit-002
Have you play around with the code sandbox ?
https://codesandbox.io/s/monp6n08n8
So that you can check the implementation with yours.
from react-tiny-link.
Hi @unit-002
Have you play around with the code sandbox ?https://codesandbox.io/s/monp6n08n8
So that you can check the implementation with yours.
I did checked the codesandbox and follow the sample code, the image shows in code sandbox but doesn't show on mine still having the forbidden error but aside from the error the link works fine it goes to the right link when clicked. What could be the cause? Is it because I am on localhost?
here my list of dependencies aside from react tiny link
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"bootstrap": "^4.6.0",
"bs-custom-file-input": "^1.3.4",
"dotenv": "^8.2.0",
"firebase": "^8.3.0",
"moment": "^2.29.1",
"react": "^17.0.1",
"react-bootstrap": "^1.5.1",
"react-dom": "^17.0.1",
"react-draggable": "^4.4.3",
"react-icons": "^4.2.0",
"react-infinite-scroll-component": "^6.0.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"react-textarea-autosize": "^8.3.2",
"uuid": "^8.3.2",
"web-vitals": "^1.0.1"
from react-tiny-link.
I will close this issue for now then. 😀
from react-tiny-link.
Related Issues (20)
- Invalid URL exception handling HOT 1
- Preview not displayed (CORS 403 Forbidden issue) HOT 1
- accessibility issue with multiple header and footer using deque extension
- How to add onClick on the component?? HOT 1
- fixRelativeUrls returns broken link for some images
- Preview of a Twitter page doesn't show correctly HOT 9
- Ability to remove title, description and just show media HOT 2
- TypeError: Failed to construct 'URL': Invalid URL HOT 2
- gatsby support HOT 7
- Bundle size & duplicate react-dom.production HOT 3
- feature request: provide a custom hook for grabbing link meta data HOT 1
- when putting an url without http:// it crashes HOT 2
- Too Many Requests
- Nextjs support: ReferenceError: window is not defined HOT 5
- Unhandled Rejection (Error): [object Object] HOT 1
- feature request: optionally cache requests
- Uncaught (in promise) {isCanceled: true} HOT 3
- add 'providor' to 'result' object of useScrapper HOT 1
- window is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-tiny-link.