Changes between Initial Version and Version 1 of Ticket #5404, comment 1


Ignore:
Timestamp:
Sep 20, 2017, 6:50:28 AM (7 years ago)
Author:
ayleph

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5404, comment 1

    initial v1  
    1 Here's a first stab at this using a meddleware class to set `X-Frame-Options = SAMEORIGIN` for all views. A more complete solution would probably present a configuration option to the user to let them override this value for all views, and an even better solution might use a decorator to let specific views have different X-Frame-Options headers.
     1Here's a first stab at this using a meddleware class to set `X-Frame-Options = SAMEORIGIN` for all views. A better solution would would probably use decorators to set X-Frame-Options headers on specific views as mentioned in the ticket title.
    22
    33{{{