Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ <h2>Recommended Secure Coding Practices</h2>
sensitive-security cookies. </li>
</ul>
<h2>Sensitive Code Examples</h2>
<p>Python 3:</p>
<pre>
import http.cookies

cookie = http.cookies.SimpleCookie()
cookie['key'] = 'value' # Sensitive
</pre>
<p>Flask:</p>
<pre>
from flask import Response
Expand All @@ -34,14 +27,6 @@ <h2>Sensitive Code Examples</h2>
return response
</pre>
<h2>Compliant Solution</h2>
<p>Python 3:</p>
<pre>
import http.cookies

cookie = http.cookies.SimpleCookie()
cookie['key'] = 'value'
cookie['key']['httponly'] = True # Compliant
</pre>
<p>Flask:</p>
<pre>
from flask import Response
Expand Down