File size: 15,277 Bytes
e165512
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{"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?"}