[web] Enabled CORS.
Server class implemented.