1. 해결법
결론 부터 말하면, 서버를 아래의 포트로 실행하지 않아야합니다.
1, // tcpmux
7, // echo
9, // discard
11, // systat
13, // daytime
15, // netstat
17, // qotd
19, // chargen
20, // ftp data
21, // ftp access
22, // ssh
23, // telnet
25, // smtp
37, // time
42, // name
43, // nicname
53, // domain
69, // tftp
77, // priv-rjs
79, // finger
87, // ttylink
95, // supdup
101, // hostriame
102, // iso-tsap
103, // gppitnp
104, // acr-nema
109, // pop2
110, // pop3
111, // sunrpc
113, // auth
115, // sftp
117, // uucp-path
119, // nntp
123, // NTP
135, // loc-srv /epmap
137, // netbios
139, // netbios
143, // imap2
161, // snmp
179, // BGP
389, // ldap
427, // SLP (Also used by Apple Filing Protocol)
465, // smtp+ssl
512, // print / exec
513, // login
514, // shell
515, // printer
526, // tempo
530, // courier
531, // chat
532, // netnews
540, // uucp
548, // AFP (Apple Filing Protocol)
554, // rtsp
556, // remotefs
563, // nntp+ssl
587, // smtp (rfc6409)
601, // syslog-conn (rfc3195)
636, // ldap+ssl
993, // ldap+ssl
995, // pop3+ssl
1719, // h323gatestat
1720, // h323hostcall
1723, // pptp
2049, // nfs
3659, // apple-sasl / PasswordServer
4045, // lockd
5060, // sip
5061, // sips
6000, // X11
6566, // sane-port
6665, // Alternate IRC [Apple addition]
6666, // Alternate IRC [Apple addition]
6667, // Standard IRC [Apple addition]
6668, // Alternate IRC [Apple addition]
6669, // Alternate IRC [Apple addition]
6697, // IRC + TLS
10080, // Amanda
2. 원인
웹 클라이언트랑 포트 겹쳐서 그냥 6000번 으로 스프링부트를 실행했더니, ERR_UNSAFE_PORT 에러가 발생했습니다. CORS 이슈도 아니고, 살펴보니 특정 포트는 사용할 수 없다는 정책이었습니다.
지금 까지는 운이 좋았구나 싶었고, 크롬, 파이어폭스, 웨일 모두 발생합니다.
그래서, 서버의 포트를 변경합시다.
3. 참고
https://superuser.com/questions/188058/which-ports-are-considered-unsafe-by-chrome
'spring' 카테고리의 다른 글
[spring] Cannot find method 'value' (0) | 2022.06.01 |
---|---|
[스프링부트 form 전송] - 415 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported (0) | 2022.05.30 |
springboot - CORS (0) | 2022.05.29 |