allow different access origins

main
Lee Hanken 2022-01-08 18:06:45 +00:00
parent 3aa61c5c35
commit 87f476f29b
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ const port = process.env.PORT
app.get('/', (req, res) => {
url = req.query.url;
res.header("Access-Control-Allow-Origin", '*');
if (url) {
read_url(url, res);
} else {