<div id="map" style="width:100%;height:400px;"></div>
<script type="text/javascript" src="https://dapi.kakao.com/v2/maps/sdk.js?appkey={JS KEY}">
var container = document.getElementById('map'); //지도를 담을 영역의 DOM 레퍼런스
var options = { //지도를 생성할 때 필요한 기본 옵션
center: new kakao.maps.LatLng(37.6099767, 126.9973002), //지도의 중심좌표.
level: 3 //지도의 레벨(확대, 축소 정도)
};
var map = new kakao.maps.Map(container, options); //지도 생성 및 객체 리턴
</script>
지도도 로드되지 않고
-
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
-
Because a cookie’s
SameSite
attribute was not set or is invalid, it defaults toSameSite=Lax
, which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
* Specify SameSite=None
and Secure
if the cookie should be sent in cross-site requests. This enables third-party use.
* Specify SameSite=Strict
or SameSite=Lax
if the cookie should not be sent in cross-site requests.
위와 같은 오류도 뜨는데 어떻게 해결해야하나요?