21 lines
411 B
Plaintext
21 lines
411 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../ask-yourself.adoc[]
|
||
|
|
||
|
include::../recommended.adoc[]
|
||
|
|
||
|
== Sensitive Code Example
|
||
|
|
||
|
----
|
||
|
from django.http import HttpResponse
|
||
|
|
||
|
def index(request):
|
||
|
response = HttpResponse("Hello world.")
|
||
|
response.set_cookie('myCookie', 'myval') # Sensitive
|
||
|
response.set_signed_cookie('mySignedCookie', 'smyval') # Sensitive
|
||
|
|
||
|
return response
|
||
|
----
|
||
|
|
||
|
include::../see.adoc[]
|