set header access control for title

main
Lee Hanken 2022-01-18 18:02:15 +00:00
parent dc5605abaa
commit fd4d7c93e2
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ app.use(rateLimiter)
app.get('/', (req, res) => {
url = req.query.url;
res.header("Access-Control-Allow-Origin", '*');
res.header("Access-Control-Expose-Headers", 'X-Title');
if (url && validURL(url)) {
read_url(url, res);
} else {