Fix a bug where searching in web app using iOS causes page to reload (#645)
* Fix a bug where searching in web app using iOS causes page to reload * Add cors handler in prod
This commit is contained in:
1 parent
06326d084e
commit
58e2b48409
4 files changed
+84
-67
No files matched your search
@@ -40,6 +40,8 @@ function SetupRoutes(server as object)
|
||||
#if DEBUG
|
||||
'CORS is mostly for developing the web app
|
||||
server.UseRouter(new Http.CorsMiddleware())
|
||||
#else
|
||||
server.UseRouter(new Http.CorsMiddleware(""))
|
||||
#end if
|
||||
if server.settings.WebSocketsEnabled
|
||||
server.UseRouter(new Http.WebSocketMiddleware())
|
||||
|
||||
Reference in new issue
Block a user