Im running EC2 ubuntu server.
Code is Written by NodeJS and deployed as https using NGINX, certified by letsencrypt.
Frontpage is deployed on Vercel.app
Frontpage is using sub-domain, such as https://admin.example.co.kr while original domain is ‘http://example.co.kr’
the pages work ok on pc web brower but the problem is mobile web browser.
it returns ‘error : failed to fetch’ when i try to reach url.
I checked CORS. Which I tried on node code only, tryied it on nginx with it, or nginx alone.
now CORS setting is applied on both backend and Nginx.
only thing Im suspecting for now is that, dns server is certified for example.co.kr while front domain is using admin.example.co.kr
could that be causing this problem which only mobile device makes ‘failed to fetch’ error?
any help or suggestions will be appretiated
I also checked NGINX.
the log from mobile requests are below
109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config.yaml HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.ssh/id_ecdsa HTTP/1.1" 404 152 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /etc/ssl/private/server.key HTTP/1.1" 404 159 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.ssh/id_ed25519 HTTP/1.1" 404 155 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /web.config HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /dump.sql HTTP/1.1" 404 148 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.git/HEAD HTTP/1.1" 404 149 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /wp-admin/setup-config.php HTTP/1.1" 404 160 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.env HTTP/1.1" 404 143 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config/production.json HTTP/1.1" 404 157 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config/database.php HTTP/1.1" 404 154 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /backup.tar.gz HTTP/1.1" 404 152 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /backup.zip HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.kube/config HTTP/1.1" 404 151 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET / HTTP/1.1" 404 139 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.svn/wc.db HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /backup.sql HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.ssh/id_rsa HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /wp-config.php HTTP/1.1" 404 152 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /server.key HTTP/1.1" 404 149 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /etc/shadow HTTP/1.1" 404 149 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config.php HTTP/1.1" 404 149 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config.xml HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /secrets.json HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /phpinfo.php HTTP/1.1" 404 148 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /database.sql HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /docker-compose.yml HTTP/1.1" 404 154 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /server-status HTTP/1.1" 404 151 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config.json HTTP/1.1" 404 150 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /config.yml HTTP/1.1" 404 149 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.env.production HTTP/1.1" 404 153 "-" "Go-http-client/1.1" 109.202.99.36 - - [18/Jun/2024:02:43:28 +0000] "GET /.aws/credentials HTTP/1.1" 404 153 "-" "Go-http-client/1.1"
i have no idea why mobile requests ask for such system files when it’s requesting via same front url.
the front code doesn’t ask for such files at all
could this be a reason why mobile requests are making erros?