Added CORS headers to each API response.