cybermodels-web-defense / data /examples.jsonl
p4x-ng's picture
Stage Cybermodels v0.1 web-defense
e165512 verified
Raw History Blame Contribute Delete
53.2 kB
{"id": "d955dcc192f8c028", "passage": "cache-control", "condition": "closed", "split": "train", "question": "Which Cache-Control directive prevents a sensitive response being stored?", "answer": "Use no-store on that response.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Which Cache-Control directive prevents a sensitive response being stored?"}
{"id": "d955dcc192f8c028", "passage": "cache-control", "condition": "rag", "split": "train", "question": "Which Cache-Control directive prevents a sensitive response being stored?", "answer": "Use no-store on that response. [Cache-Control storage and revalidation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)", "retrieved": ["cache-control", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Which Cache-Control directive prevents a sensitive response being stored?"}
{"id": "a34d35f33de3bcc9", "passage": "cache-control", "condition": "closed", "split": "train", "question": "Can a cache store a response marked no-cache?", "answer": "Yes. It must validate it before reusing it.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can a cache store a response marked no-cache?"}
{"id": "a34d35f33de3bcc9", "passage": "cache-control", "condition": "rag", "split": "train", "question": "Can a cache store a response marked no-cache?", "answer": "Yes. It must validate it before reusing it. [Cache-Control storage and revalidation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)", "retrieved": ["cache-control", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: Can a cache store a response marked no-cache?"}
{"id": "7b1fc6f005bb3a90", "passage": "cache-control", "condition": "closed", "split": "train", "question": "Can I rely on private alone to prevent a browser caching an account page?", "answer": "No. Private permits a private cache to store the response. Use no-store when storage must be prevented.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can I rely on private alone to prevent a browser caching an account page?"}
{"id": "7b1fc6f005bb3a90", "passage": "cache-control", "condition": "rag", "split": "train", "question": "Can I rely on private alone to prevent a browser caching an account page?", "answer": "No. Private permits a private cache to store the response. Use no-store when storage must be prevented. [Cache-Control storage and revalidation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control)", "retrieved": ["cache-control", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: Can I rely on private alone to prevent a browser caching an account page?"}
{"id": "05d9f4fc36806f91", "passage": "set-cookie", "condition": "closed", "split": "train", "question": "Which session cookie attribute blocks document.cookie from reading its value?", "answer": "Set HttpOnly. The browser can still send that cookie on eligible requests.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Which session cookie attribute blocks document.cookie from reading its value?"}
{"id": "05d9f4fc36806f91", "passage": "set-cookie", "condition": "rag", "split": "train", "question": "Which session cookie attribute blocks document.cookie from reading its value?", "answer": "Set HttpOnly. The browser can still send that cookie on eligible requests. [Set-Cookie session cookie attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)", "retrieved": ["set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Which session cookie attribute blocks document.cookie from reading its value?"}
{"id": "fcc185bc9f8ae01c", "passage": "set-cookie", "condition": "closed", "split": "train", "question": "What other attribute is required on a SameSite=None cookie?", "answer": "Set Secure alongside SameSite=None.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What other attribute is required on a SameSite=None cookie?"}
{"id": "fcc185bc9f8ae01c", "passage": "set-cookie", "condition": "rag", "split": "train", "question": "What other attribute is required on a SameSite=None cookie?", "answer": "Set Secure alongside SameSite=None. [Set-Cookie session cookie attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)", "retrieved": ["set-cookie", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: What other attribute is required on a SameSite=None cookie?"}
{"id": "9b190462e516a02d", "passage": "set-cookie", "condition": "closed", "split": "train", "question": "How should I scope a session cookie to the issuing host alone?", "answer": "Omit Domain to create a host-only cookie.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: How should I scope a session cookie to the issuing host alone?"}
{"id": "9b190462e516a02d", "passage": "set-cookie", "condition": "rag", "split": "train", "question": "How should I scope a session cookie to the issuing host alone?", "answer": "Omit Domain to create a host-only cookie. [Set-Cookie session cookie attributes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie)", "retrieved": ["set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: How should I scope a session cookie to the issuing host alone?"}
{"id": "45bd52c2f2c6025f", "passage": "hsts", "condition": "closed", "split": "train", "question": "Can my browser learn HSTS from the site's plain HTTP redirect?", "answer": "Send Strict-Transport-Security on the HTTPS response. Browsers ignore it over plain HTTP.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can my browser learn HSTS from the site's plain HTTP redirect?"}
{"id": "45bd52c2f2c6025f", "passage": "hsts", "condition": "rag", "split": "train", "question": "Can my browser learn HSTS from the site's plain HTTP redirect?", "answer": "Send Strict-Transport-Security on the HTTPS response. Browsers ignore it over plain HTTP. [Strict-Transport-Security and HTTPS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)", "retrieved": ["hsts", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Can my browser learn HSTS from the site's plain HTTP redirect?"}
{"id": "d7360c33c27e539e", "passage": "hsts", "condition": "closed", "split": "train", "question": "What should we confirm before enabling HSTS includeSubDomains?", "answer": "Confirm that all affected subdomains support HTTPS for the duration of the policy.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What should we confirm before enabling HSTS includeSubDomains?"}
{"id": "d7360c33c27e539e", "passage": "hsts", "condition": "rag", "split": "train", "question": "What should we confirm before enabling HSTS includeSubDomains?", "answer": "Confirm that all affected subdomains support HTTPS for the duration of the policy. [Strict-Transport-Security and HTTPS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)", "retrieved": ["hsts", "cache-control"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nQuestion: What should we confirm before enabling HSTS includeSubDomains?"}
{"id": "84eab7041f0b5643", "passage": "hsts", "condition": "closed", "split": "train", "question": "What determines how long a browser remembers an HSTS policy?", "answer": "The max-age directive sets the policy lifetime in seconds.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What determines how long a browser remembers an HSTS policy?"}
{"id": "84eab7041f0b5643", "passage": "hsts", "condition": "rag", "split": "train", "question": "What determines how long a browser remembers an HSTS policy?", "answer": "The max-age directive sets the policy lifetime in seconds. [Strict-Transport-Security and HTTPS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)", "retrieved": ["hsts", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: What determines how long a browser remembers an HSTS policy?"}
{"id": "2df3c4cbd672f6d0", "passage": "frame-ancestors", "condition": "closed", "split": "train", "question": "What HTTP policy stops any parent from framing my page?", "answer": "Send Content-Security-Policy with frame-ancestors 'none' on the response.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What HTTP policy stops any parent from framing my page?"}
{"id": "2df3c4cbd672f6d0", "passage": "frame-ancestors", "condition": "rag", "split": "train", "question": "What HTTP policy stops any parent from framing my page?", "answer": "Send Content-Security-Policy with frame-ancestors 'none' on the response. [Content-Security-Policy frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors)", "retrieved": ["frame-ancestors", "hsts"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nQuestion: What HTTP policy stops any parent from framing my page?"}
{"id": "6576d7968380d019", "passage": "frame-ancestors", "condition": "closed", "split": "train", "question": "Does default-src 'none' automatically set frame-ancestors?", "answer": "No. Specify frame-ancestors explicitly.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does default-src 'none' automatically set frame-ancestors?"}
{"id": "6576d7968380d019", "passage": "frame-ancestors", "condition": "rag", "split": "train", "question": "Does default-src 'none' automatically set frame-ancestors?", "answer": "No. Specify frame-ancestors explicitly. [Content-Security-Policy frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors)", "retrieved": ["frame-ancestors", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Does default-src 'none' automatically set frame-ancestors?"}
{"id": "b69192a2803f0aee", "passage": "frame-ancestors", "condition": "closed", "split": "train", "question": "Should the page restrict who can embed it with frame-src or frame-ancestors?", "answer": "Use frame-ancestors for parents that embed the page. frame-src controls frames loaded by the page.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Should the page restrict who can embed it with frame-src or frame-ancestors?"}
{"id": "b69192a2803f0aee", "passage": "frame-ancestors", "condition": "rag", "split": "train", "question": "Should the page restrict who can embed it with frame-src or frame-ancestors?", "answer": "Use frame-ancestors for parents that embed the page. frame-src controls frames loaded by the page. [Content-Security-Policy frame-ancestors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors)", "retrieved": ["frame-ancestors", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Should the page restrict who can embed it with frame-src or frame-ancestors?"}
{"id": "c082f5f794612660", "passage": "referrer-policy", "condition": "closed", "split": "train", "question": "How do I omit the Referer header on outbound requests?", "answer": "Send Referrer-Policy: no-referrer.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: How do I omit the Referer header on outbound requests?"}
{"id": "c082f5f794612660", "passage": "referrer-policy", "condition": "rag", "split": "train", "question": "How do I omit the Referer header on outbound requests?", "answer": "Send Referrer-Policy: no-referrer. [Referrer-Policy on outbound requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy)", "retrieved": ["referrer-policy", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: How do I omit the Referer header on outbound requests?"}
{"id": "b45c2fda4c92bf53", "passage": "referrer-policy", "condition": "closed", "split": "train", "question": "With strict-origin-when-cross-origin, what reaches another HTTPS origin?", "answer": "Only the origin is sent as the referrer.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: With strict-origin-when-cross-origin, what reaches another HTTPS origin?"}
{"id": "b45c2fda4c92bf53", "passage": "referrer-policy", "condition": "rag", "split": "train", "question": "With strict-origin-when-cross-origin, what reaches another HTTPS origin?", "answer": "Only the origin is sent as the referrer. [Referrer-Policy on outbound requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy)", "retrieved": ["referrer-policy", "hsts"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nQuestion: With strict-origin-when-cross-origin, what reaches another HTTPS origin?"}
{"id": "8bcfad68db2cc41e", "passage": "referrer-policy", "condition": "closed", "split": "train", "question": "With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?", "answer": "No. A downgrade from HTTPS to HTTP omits the referrer.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?"}
{"id": "8bcfad68db2cc41e", "passage": "referrer-policy", "condition": "rag", "split": "train", "question": "With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?", "answer": "No. A downgrade from HTTPS to HTTP omits the referrer. [Referrer-Policy on outbound requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy)", "retrieved": ["referrer-policy", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: With strict-origin-when-cross-origin, does an HTTPS page send a referrer on a downgrade to HTTP?"}
{"id": "0c3231f5f52ee34f", "passage": "nosniff", "condition": "closed", "split": "train", "question": "A stylesheet stopped loading with nosniff. Which response metadata should we check?", "answer": "Check Content-Type on the actual asset response. A stylesheet must be served as text/css.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: A stylesheet stopped loading with nosniff. Which response metadata should we check?"}
{"id": "0c3231f5f52ee34f", "passage": "nosniff", "condition": "rag", "split": "train", "question": "A stylesheet stopped loading with nosniff. Which response metadata should we check?", "answer": "Check Content-Type on the actual asset response. A stylesheet must be served as text/css. [X-Content-Type-Options nosniff and MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options)", "retrieved": ["nosniff", "frame-ancestors"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nX-Content-Type-Options nosniff and MIME types\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options\nEditorial summary: Send an accurate Content-Type with X-Content-Type-Options: nosniff. Browsers enforce MIME checks for script and style destinations. For example, a stylesheet response must use text/css. Applying nosniff can expose an existing server misconfiguration when an asset has the wrong declared MIME type.\n\nContent-Security-Policy frame-ancestors\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-ancestors\nEditorial summary: The frame-ancestors directive controls which parents may embed a page. A policy of 'none' excludes all ancestors. The directive is delivered as an HTTP response header, and it has no default-src fallback. frame-src deals with the frames the page itself may load.\n\nQuestion: A stylesheet stopped loading with nosniff. Which response metadata should we check?"}
{"id": "573a2bb0dd1e0226", "passage": "nosniff", "condition": "closed", "split": "train", "question": "Can nosniff compensate for omitting the correct MIME type on JavaScript?", "answer": "Provide an appropriate JavaScript MIME type. nosniff enforces the declared type for script requests.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can nosniff compensate for omitting the correct MIME type on JavaScript?"}
{"id": "573a2bb0dd1e0226", "passage": "nosniff", "condition": "rag", "split": "train", "question": "Can nosniff compensate for omitting the correct MIME type on JavaScript?", "answer": "Provide an appropriate JavaScript MIME type. nosniff enforces the declared type for script requests. [X-Content-Type-Options nosniff and MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options)", "retrieved": ["nosniff", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nX-Content-Type-Options nosniff and MIME types\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options\nEditorial summary: Send an accurate Content-Type with X-Content-Type-Options: nosniff. Browsers enforce MIME checks for script and style destinations. For example, a stylesheet response must use text/css. Applying nosniff can expose an existing server misconfiguration when an asset has the wrong declared MIME type.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: Can nosniff compensate for omitting the correct MIME type on JavaScript?"}
{"id": "e3c1a6010d9bc875", "passage": "nosniff", "condition": "closed", "split": "train", "question": "Can documentation establish the Content-Type our CDN sent yesterday?", "answer": "Check the captured response or CDN records. Documentation alone cannot establish what that deployment served.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Can documentation establish the Content-Type our CDN sent yesterday?"}
{"id": "e3c1a6010d9bc875", "passage": "nosniff", "condition": "rag", "split": "train", "question": "Can documentation establish the Content-Type our CDN sent yesterday?", "answer": "Check the captured response or CDN records. Documentation alone cannot establish what that deployment served. [X-Content-Type-Options nosniff and MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options)", "retrieved": ["nosniff", "hsts"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nX-Content-Type-Options nosniff and MIME types\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Content-Type-Options\nEditorial summary: Send an accurate Content-Type with X-Content-Type-Options: nosniff. Browsers enforce MIME checks for script and style destinations. For example, a stylesheet response must use text/css. Applying nosniff can expose an existing server misconfiguration when an asset has the wrong declared MIME type.\n\nStrict-Transport-Security and HTTPS\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security\nEditorial summary: A browser learns HSTS from a response delivered over HTTPS and remembers the policy for the max-age interval. The includeSubDomains directive extends that policy to subdomains. Verify that the affected subdomains can all serve HTTPS before enabling it. Sending this header over HTTP does not establish the policy.\n\nQuestion: Can documentation establish the Content-Type our CDN sent yesterday?"}
{"id": "c6f49ac11fe7e438", "passage": "permissions-policy", "condition": "closed", "split": "test", "question": "Does allowing geolocation through Permissions-Policy grant user consent?", "answer": "No. The feature still follows the browser's permission and user-consent rules.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does allowing geolocation through Permissions-Policy grant user consent?"}
{"id": "c6f49ac11fe7e438", "passage": "permissions-policy", "condition": "rag", "split": "test", "question": "Does allowing geolocation through Permissions-Policy grant user consent?", "answer": "No. The feature still follows the browser's permission and user-consent rules. [Permissions-Policy feature restrictions](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy)", "retrieved": ["permissions-policy", "cache-control"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nPermissions-Policy feature restrictions\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy\nEditorial summary: Permissions-Policy constrains browser features available to a document and embedded contexts. An empty allowlist denies the named feature. Allowing a feature through policy does not grant user consent. Browser support and the feature's own permission rules still apply.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nQuestion: Does allowing geolocation through Permissions-Policy grant user consent?"}
{"id": "1a053f5a1f27fc0a", "passage": "permissions-policy", "condition": "closed", "split": "test", "question": "What does an empty allowlist mean for a named Permissions-Policy feature?", "answer": "It disables that feature for all origins covered by the policy.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: What does an empty allowlist mean for a named Permissions-Policy feature?"}
{"id": "1a053f5a1f27fc0a", "passage": "permissions-policy", "condition": "rag", "split": "test", "question": "What does an empty allowlist mean for a named Permissions-Policy feature?", "answer": "It disables that feature for all origins covered by the policy. [Permissions-Policy feature restrictions](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy)", "retrieved": ["permissions-policy", "vary"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nPermissions-Policy feature restrictions\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Permissions-Policy\nEditorial summary: Permissions-Policy constrains browser features available to a document and embedded contexts. An empty allowlist denies the named feature. Allowing a feature through policy does not grant user consent. Browser support and the feature's own permission rules still apply.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nQuestion: What does an empty allowlist mean for a named Permissions-Policy feature?"}
{"id": "e3a2c3c9ad628ce3", "passage": "clear-site-data", "condition": "closed", "split": "test", "question": "Does sending Clear-Site-Data on sign-out revoke the server-side session?", "answer": "Invalidate the session on the server as well. The header targets data held by the browser.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does sending Clear-Site-Data on sign-out revoke the server-side session?"}
{"id": "e3a2c3c9ad628ce3", "passage": "clear-site-data", "condition": "rag", "split": "test", "question": "Does sending Clear-Site-Data on sign-out revoke the server-side session?", "answer": "Invalidate the session on the server as well. The header targets data held by the browser. [Clear-Site-Data response on sign-out](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data)", "retrieved": ["clear-site-data", "set-cookie"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nClear-Site-Data response on sign-out\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data\nEditorial summary: Over a secure connection, Clear-Site-Data asks a supporting browser to clear specified categories of local site data. Directives include quoted cookies, storage and cache values. Clearing client data does not revoke a session in the application's backend.\n\nSet-Cookie session cookie attributes\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\nEditorial summary: Secure restricts cookie transmission to secure channels, with a localhost exception in browsers. HttpOnly prevents script APIs from reading a cookie while the browser can still attach it to eligible requests. SameSite controls cross-site delivery; SameSite=None requires Secure. Omitting Domain makes a cookie host-only.\n\nQuestion: Does sending Clear-Site-Data on sign-out revoke the server-side session?"}
{"id": "a48f783fbe6e17ee", "passage": "clear-site-data", "condition": "closed", "split": "test", "question": "How can a secure sign-out response request removal of browser-side storage?", "answer": "Send Clear-Site-Data with the quoted storage directive and account for browser support.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: How can a secure sign-out response request removal of browser-side storage?"}
{"id": "a48f783fbe6e17ee", "passage": "clear-site-data", "condition": "rag", "split": "test", "question": "How can a secure sign-out response request removal of browser-side storage?", "answer": "Send Clear-Site-Data with the quoted storage directive and account for browser support. [Clear-Site-Data response on sign-out](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data)", "retrieved": ["clear-site-data", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nClear-Site-Data response on sign-out\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Clear-Site-Data\nEditorial summary: Over a secure connection, Clear-Site-Data asks a supporting browser to clear specified categories of local site data. Directives include quoted cookies, storage and cache values. Clearing client data does not revoke a session in the application's backend.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: How can a secure sign-out response request removal of browser-side storage?"}
{"id": "be0340f0def763ca", "passage": "vary", "condition": "closed", "split": "test", "question": "Our cache mixes negotiated language variants. Which HTTP response header describes that variation?", "answer": "Use Vary: Accept-Language if that request header selects the language representation.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Our cache mixes negotiated language variants. Which HTTP response header describes that variation?"}
{"id": "be0340f0def763ca", "passage": "vary", "condition": "rag", "split": "test", "question": "Our cache mixes negotiated language variants. Which HTTP response header describes that variation?", "answer": "Use Vary: Accept-Language if that request header selects the language representation. [Vary response selection in HTTP caches](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)", "retrieved": ["vary", "cache-control"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nCache-Control storage and revalidation\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control\nEditorial summary: The no-store response directive asks caches to avoid storing the response. With no-cache, storage is allowed but the cache must validate before reuse. The private directive confines storage to private caches. Changing a policy on a new response does not itself purge an earlier response from every cache.\n\nQuestion: Our cache mixes negotiated language variants. Which HTTP response header describes that variation?"}
{"id": "67bb9e1053896763", "passage": "vary", "condition": "closed", "split": "test", "question": "Does a Vary header define how long a representation can stay fresh?", "answer": "No. Vary governs selection among representations. Cache freshness is a separate policy.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Does a Vary header define how long a representation can stay fresh?"}
{"id": "67bb9e1053896763", "passage": "vary", "condition": "rag", "split": "test", "question": "Does a Vary header define how long a representation can stay fresh?", "answer": "No. Vary governs selection among representations. Cache freshness is a separate policy. [Vary response selection in HTTP caches](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)", "retrieved": ["vary", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: Does a Vary header define how long a representation can stay fresh?"}
{"id": "5c5ccbaf6a0a36e4", "passage": "vary", "condition": "closed", "split": "test", "question": "Should different responses for the same negotiated URL use a consistent Vary value?", "answer": "Yes. Return a consistent Vary value for that URL, including relevant revalidation responses.", "retrieved": [], "prompt": "Answer the Web application defense question concisely.\nQuestion: Should different responses for the same negotiated URL use a consistent Vary value?"}
{"id": "5c5ccbaf6a0a36e4", "passage": "vary", "condition": "rag", "split": "test", "question": "Should different responses for the same negotiated URL use a consistent Vary value?", "answer": "Yes. Return a consistent Vary value for that URL, including relevant revalidation responses. [Vary response selection in HTTP caches](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)", "retrieved": ["vary", "referrer-policy"], "prompt": "Answer the Web application defense question concisely. Use relevant information below and link the supporting reference. These summaries are paraphrases by Hyperion Gray. Use your own words. If the notes do not establish the answer, say what information is missing.\n\nVary response selection in HTTP caches\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary\nEditorial summary: Vary names request headers that affected a response, so caches can distinguish representations. For a resource negotiated by language, Vary: Accept-Language tells a cache to take the request's language header into account. It does not set a storage lifetime or prohibit caching.\n\nReferrer-Policy on outbound requests\nFurther reading: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy\nEditorial summary: A no-referrer policy omits the Referer header. Under strict-origin-when-cross-origin, same-origin requests can carry a fuller referrer, eligible cross-origin requests carry only the origin, and downgrades from HTTPS to HTTP omit it. Referrer policy governs this header and does not remove secrets already embedded in destination URLs.\n\nQuestion: Should different responses for the same negotiated URL use a consistent Vary value?"}