class AddResponseHeader:
    def process_response(self, req, resp, resource):
        resp.set_header('Access-Control-Allow-Origin', 'http://localhost:8000')

components = [AddResponseHeader()]

@@ -150,16 +150,162 @@
 t:8000')
+%0A        resp.set_header('Access-Control-Allow-Methods', 'GET, POST, PUT')%0A        resp.set_header('Access-Control-Allow-Headers', 'Content-Type')
 %0A%0Acompon

Fix API access control headers