set content security policy
parent
cc84b2b2d9
commit
fefd5245e6
1
index.js
1
index.js
|
@ -25,6 +25,7 @@ app.use(rateLimiter)
|
|||
app.get('/', (req, res) => {
|
||||
url = req.query.url;
|
||||
res.header("Access-Control-Allow-Origin", '*');
|
||||
res.header("Content-Security-Policy", 'connect-src *');
|
||||
res.header("Access-Control-Expose-Headers", 'X-Title');
|
||||
res.header("Content-Type", 'text/markdown');
|
||||
if (url && validURL(url)) {
|
||||
|
|
Loading…
Reference in New Issue