<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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