Close #2394; Add tab-i18n to list of allowed URLs in CORS

pull/2590/head
Rodrigo Nascimento 9 years ago
parent 3f2c4c1d0b
commit f560a0678c
  1. 2
      packages/rocketchat-cors/cors.coffee

@ -28,7 +28,7 @@ WebApp.rawConnectHandlers.use (req, res, next) ->
WebApp.rawConnectHandlers.use (req, res, next) ->
if /^\/(api|_timesync|sockjs)(\/|$)/.test req.url
if /^\/(api|_timesync|sockjs|tap-i18n)(\/|$)/.test req.url
res.setHeader("Access-Control-Allow-Origin", "*")
# Block next handlers to override CORS with value http://meteor.local

Loading…
Cancel
Save