Add CORS support to Nim implementation