Added cors handling:
If the Origin header exists then add Access-Control-Allow-Origin and Access-Control-Allow-Headers headers to the response.
Added cors handling:
If the Origin header exists then add Access-Control-Allow-Origin and Access-Control-Allow-Headers headers to the response.