हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव/राय देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Ad Manager के आधिकारिक Discord चैनल से जुड़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
मॉडर्न ब्राउज़र, JavaScript नेटवर्क पर एक ही ऑरिजिन वाली सुरक्षा से जुड़ी पाबंदियां लागू करते हैं
अनुरोधों का मतलब है कि एक ऑरिजिन से चलने वाला वेब ऐप्लिकेशन, डेटा हासिल नहीं कर सकता
किसी और ऑरिजिन से मिला है. वीएएसटी के लिए, सुरक्षा की यह पाबंदी
पढ़ने से मिले JavaScript वीएएसटी रेंडरिंग कोड से बनाया गया JavaScript XMLHttpRequests
किसी अन्य ऑरिजिन से दिखाया गया वीएएसटी विज्ञापन रिस्पॉन्स.
सुरक्षा से जुड़ी यह पाबंदी उन समस्याओं को रोकने के लिए है जिनमें एक ही ऑरिजिन सुरक्षित हो
किसी अन्य ऑरिजिन से डेटा पढ़ने के लिए जिसमें उपयोगकर्ता को उसके बिना ही लॉग इन किया जा सकता है
उपयोगकर्ता की अनुमति लेनी होगी. इस पाबंदी की वजह से JavaScript में दिखाए गए वीएएसटी (वीडियो विज्ञापन देने के लिए टेंप्लेट) में समस्याएं हैं
ऐसा इसलिए होता है, क्योंकि विज्ञापन सर्वर अक्सर
विज्ञापन प्लेयर.
क्रॉस-ऑरिजिन रिसॉर्स शेयरिंग (सीओआरएस) हेडर, एक W3C ड्राफ़्ट स्पेसिफ़िकेशन है
ताकि अलग-अलग ऑरिजिन के बीच फ़ाइलें शेयर की जा सकें. JavaScript में सर्वेेबल होने के लिए
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-07-24 (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"]]