Opened 3 years ago

Last modified 3 years ago

#32899 closed Cleanup/optimization

enhance JSONResponse safe=True kwarg docs — at Version 1

Reported by: Thomas Grainger Owned by: Simon Willison
Component: Documentation Version: 3.2
Severity: Normal Keywords:
Cc: Simon Willison Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jacob Walls)

currently JSONResponse documents a safe kwarg

      Data to be dumped into json. By default only ``dict`` objects
      are allowed to be passed due to a security flaw before EcmaScript 5. See
      the ``safe`` parameter for more information.

EcmaScript 5 is mostly dead, but there are other advantages to only sending dicts, see https://twitter.com/simonw/status/1410682522908856320

Change History (1)

comment:1 by Jacob Walls, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top