code: def post_request(self, request, response):
          # type: (BaseHttpRequest, HttpResponse) -> HttpResponse
          
          if request.method != api.Method.OPTIONS:
              response.headers.update(self.request_headers(request))
          return response
docs: Post-request hook to allow CORS headers to responses.