Skip to content

Commit

Permalink
remove old unused headers
Browse files Browse the repository at this point in the history
  • Loading branch information
engelgabriel committed Feb 15, 2016
1 parent 88376ea commit d863c91
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/rocketchat-cors/cors.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)


Expand Down

0 comments on commit d863c91

Please sign in to comment.