Skip to content
Snippets Groups Projects
Commit d863c91e authored by Gabriel Engel's avatar Gabriel Engel Committed by Gabriel Engel
Browse files

remove old unused headers

parent 88376ea0
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,6 @@ WebApp.rawConnectHandlers.use (req, res, next) ->
WebApp.rawConnectHandlers.use (req, res, next) ->
res.setHeader("Access-Control-Allow-Origin", "*")
res.setHeader("X-Rocket-Chat-Version", RocketChat.Info.version)
res.setHeader("Access-Control-Expose-Headers", "X-Rocket-Chat-Version")
# Block next handlers to override CORS with value http://meteor.local
setHeader = res.setHeader
......@@ -44,8 +42,6 @@ WebApp.rawConnectHandlers.use (req, res, next) ->
_staticFilesMiddleware = WebAppInternals.staticFilesMiddleware
WebAppInternals._staticFilesMiddleware = (staticFiles, req, res, next) ->
res.setHeader("Access-Control-Allow-Origin", "*")
res.setHeader("X-Rocket-Chat-Version", RocketChat.Info.version)
res.setHeader("Access-Control-Expose-Headers", "X-Rocket-Chat-Version")
_staticFilesMiddleware(staticFiles, req, res, next)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment