(request: FastifyRequest)
| 45 | } |
| 46 | |
| 47 | function getRemoteAddress(request: FastifyRequest): string | undefined { |
| 48 | return request.ip || request.socket.remoteAddress; |
| 49 | } |
| 50 | |
| 51 | function sameOrigin(origin: URL, hostHeader: string): boolean { |
| 52 | return origin.host.toLowerCase() === hostHeader.toLowerCase(); |
no outgoing calls
no test coverage detected