Post-request hook to allow CORS headers to responses.

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