4tendev
django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '34.127.112.140:7021'.
im using cloudfalre to proxy for my django app how it possible to someone call my ap with ip ?
i also got this inlogs 7:M 28 Dec 2023 23:02:53.169 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection from 192.168.48.3:59764 aborted.
is it possible someone trying to attack me ? should i be consern ?
15 replies
fetching from front in private network but getting error
this is my fetch function
async function getData() {
const userCookies = cookies()
const url = process.env.INTERNAL_BACK_URL ??"http://127.0.0.1:8000/"
const res = await fetch(url+"user/info/",
{headers: { Cookie : userCookies },})
if (!res.ok) {
throw new Error('Failed to fetch data')
}
return res.json() } and for url i used this 2 pattern but both get errors pergamer_back.railway.internal/user/info [cause]: TypeError [ERR_INVALID_URL]: Invalid URL and http://pergamer_back.railway.internal/ TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11576:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: Error: connect ECONNREFUSED fd12:ae40:cb28::cf:ac56:6757:80 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: 'fd12:ae40:cb28::cf:ac56:6757', port: 80
return res.json() } and for url i used this 2 pattern but both get errors pergamer_back.railway.internal/user/info [cause]: TypeError [ERR_INVALID_URL]: Invalid URL and http://pergamer_back.railway.internal/ TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11576:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: Error: connect ECONNREFUSED fd12:ae40:cb28::cf:ac56:6757:80 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: 'fd12:ae40:cb28::cf:ac56:6757', port: 80
92 replies