how to find the origin of the incoming request
Howdy! Is there's a way to find the origin of the incoming request.
return null!
return null!
let origin = request.headers.get("origin");const origin = new URL(request.url).origin
const origin = new URL(request.url).originconst http = require('http');
const server = http.createServer((req, res) => {
const origin = req.headers.origin;
});