D
Deno

help

oak server can't accept requests from another server?

Xxanderjakeq8/26/2023
hi, I'm trying out deno with oak to make a simple server. I set up cors(x/cors), it accepts requests from the browser, but when I try to make a request from a another server, the fetch fails.
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8080
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 8080
any idea why this is happening and a way to fix it? thankss

Looking for more? Join the community!