Skip to content

Commit

Permalink
Minor tweak of lab csp1 (#656)
Browse files Browse the repository at this point in the history
* Minor tweak of lab csp1

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>

* Remove second Again

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>

---------

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
  • Loading branch information
david-a-wheeler authored Oct 11, 2024
1 parent 6c6d5c1 commit 65db36f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/labs/csp1.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"script-src": \[ "'self'" ,
(["'`])https://example\.com\1 \] ,
"style-src": \[ "'self'" \]
\} ,
\} ,?
\}
\} \) \) ;
-->
Expand Down Expand Up @@ -129,9 +129,15 @@
text: JavaScript doesn''t require semicolon terminators, but the rest of
the code uses them. You should try to match a coding style when modifying
existing code unless there''s an important reason not to.
Please update the second statment.
Please update the second statement to use a semicolon terminator.
- absent: |-
\} \} \) \) ; $
index: 1
text: The correct answer is expected to end with `} } ) ) ;` ignoring
whitespace. Check that you have matching parentheses and braces.
- text: I do not have more specific hints to provide. Please ensure that
the parentheses, braces, and brackets pair correctly.
the parentheses, braces, and brackets pair correctly, as that is
often the problem.
# debug: true
</script>

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

Expand Down

0 comments on commit 65db36f

Please sign in to comment.