//set header to remove cross request error app.use((req,res,next)=>{ res.setHeader('Access-Control-Allow-Origin', '*'); res.setHeader('Access-Control-Allow-Methods', 'GET', 'POST', 'PUT','PATCH','DELETE'); res.setHeader('Access-Control-Allow-Headers', 'Content-Type','Authorization'); next(); })
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter