๋ชฉ๋กcorserror (1)
๐ค ์์งlog ๐ค
React๋ก ๋ง๋ ํ๋ก ํธ์์ axios๋ฅผ ํตํด nodejs๋ก ๋ง๋ api๋ฅผ ์์ฒญํ๋๋ CORS ์๋ฌ๊ฐ ๊ณ์ ๋ฐ์ํ๋ค. ๋ถ๋ช url๋ก ๋ค์ด๊ฐ๋ฉด ๋ฐ์ดํฐ๋ฅผ ์ ๋ฐ์์ค๋๋ฐ, ์ axios๋ฅผ ํตํด์ ์์ฒญ์ ํ๊ฒ ๋๋ฉด ์๋ฌ๊ฐ ๋ฐ์ํ๋์ง ..๐คฆ๐ปโโ๏ธ Access to fetch at 'http://localhost:8080/test' from orgin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response servers your needs, set the request's mode to 'n..
๐ฅ TIP
2023. 9. 22. 15:12