최신 브라우저는 JavaScript 네트워크에 동일 출처 보안 제한을 적용합니다.
즉, 한 출처에서 실행되는 웹 애플리케이션이
다른 출처에서 제공된 데이터를
확인할 수 있습니다 VAST의 경우 이러한 보안 제한으로 인해
JavaScript VAST 렌더링 코드에서 만든 JavaScript XMLHttpRequests는
다른 출처에서 제공된 VAST 광고 응답을 반환합니다.
이러한 보안 제한은 한 사용자가 다른 출처에서 데이터를 공유할 수 있는
다른 출처의 데이터를 읽을 수 있지만
권한을 부여할 수 있습니다. 자바스크립트에 게재되는 VAST에 문제를 일으킬 수 있는 제한사항
광고 서버가 현재 사이트와 다른 도메인에 있는 경우가 많기 때문에
있습니다.
교차 출처 리소스 공유 (CORS) 헤더는 Google Cloud Storage의
서로 다른 출처 간에 공유할 수 있습니다. 자바스크립트에서 게재할 수 있도록 하기 위해
환경에서 VAST 광고 서버의 응답에 다음 HTTP CORS 헤더가 포함되어야 합니다.
드림
이 HTTP 헤더를 사용하면 모든 출처의 광고 플레이어가 VAST 응답을 읽을 수 있습니다.
추출해야 합니다. Access-Control-Allow-Origin:의 값
광고 요청과 함께 전송된 Origin 헤더의 값이어야 합니다.
Access-Control-Allow-Credentials: 헤더는
올바르게 전송되고 수신되는지 확인해야 합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-05-29(UTC)"],[[["Modern browsers restrict JavaScript from accessing data from different origins (websites) for security reasons, affecting VAST ad serving."],["This restriction prevents unauthorized data access between websites, but poses challenges for VAST ads as ad servers and players are often on different domains."],["Cross-Origin Resource Sharing (CORS) headers allow secure data sharing between origins by including specific HTTP headers in the ad server's response."],["VAST ad servers need to include `Access-Control-Allow-Origin` and `Access-Control-Allow-Credentials` headers to enable JavaScript-based ad serving."]]],["Web browsers restrict JavaScript network requests to the same origin, hindering JavaScript VAST rendering code from accessing VAST ad responses from different origins. To enable cross-origin access, VAST ad servers must include specific CORS headers in their responses. The `Access-Control-Allow-Origin` header should match the request's `Origin`, and `Access-Control-Allow-Credentials: true` allows for proper cookie handling. These headers enable ad players on any origin to read the VAST response, overcoming the same-origin security restriction.\n"]]