Skip to content

Commit 65db36f

Browse files
Minor tweak of lab csp1 (#656)
* Minor tweak of lab csp1 Signed-off-by: David A. Wheeler <[email protected]> * Remove second Again Signed-off-by: David A. Wheeler <[email protected]> --------- Signed-off-by: David A. Wheeler <[email protected]>
1 parent 6c6d5c1 commit 65db36f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/labs/csp1.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"script-src": \[ "'self'" ,
5454
(["'`])https://example\.com\1 \] ,
5555
"style-src": \[ "'self'" \]
56-
\} ,
56+
\} ,?
5757
\}
5858
\} \) \) ;
5959
-->
@@ -129,9 +129,15 @@
129129
text: JavaScript doesn''t require semicolon terminators, but the rest of
130130
the code uses them. You should try to match a coding style when modifying
131131
existing code unless there''s an important reason not to.
132-
Please update the second statment.
132+
Please update the second statement to use a semicolon terminator.
133+
- absent: |-
134+
\} \} \) \) ; $
135+
index: 1
136+
text: The correct answer is expected to end with `} } ) ) ;` ignoring
137+
whitespace. Check that you have matching parentheses and braces.
133138
- text: I do not have more specific hints to provide. Please ensure that
134-
the parentheses, braces, and brackets pair correctly.
139+
the parentheses, braces, and brackets pair correctly, as that is
140+
often the problem.
135141
# debug: true
136142
</script>
137143

@@ -315,7 +321,7 @@ <h2>Task Information</h2>
315321
styles can <i>only</i> come from this site (and nowhere else).
316322
Again, we didn't include
317323
"unsafe-inline", that means that CSS embedded in the HTML will be ignored.
318-
Again, this is good for security, because it means that even if an attacker
324+
This is good for security, because it means that even if an attacker
319325
tricks a server into embedding some CSS commands, those commands will
320326
be ignored.
321327

0 commit comments

Comments
 (0)