def METHOD_NAME(self, requests):
    u = UserFactory()
    q = QuestionFactory()
    self.client.force_authenticate(user=u)
    url = reverse("realtimeregistration-list")
    data = {
        "content_type": "question",
        "object_id": q.id,
        "endpoint": "http://example.com",
    }
    res = self.client.post(url, data, HTTP_ORIGIN="http://example.com")
    self.assertEqual(res.status_code, 201)
    self.assertEqual(res["Access-Control-Allow-Origin"], "*")