Skip to content

Commit 743b2f7

Browse files
committed
Revert "add cors support for static resources"
This reverts commit 42f964f Signed-off-by: Jakob Ackermann <[email protected]>
1 parent 08de5bc commit 743b2f7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

routers/routes/routes.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ func NewMacaron() *macaron.Macaron {
135135
if setting.Protocol == setting.FCGI {
136136
m.SetURLPrefix(setting.AppSubURL)
137137
}
138-
if setting.EnableCORS {
139-
m.Use(cors.CORS(setting.CORSConfig))
140-
}
141138
m.Use(public.Custom(
142139
&public.Options{
143140
SkipLogging: setting.DisableRouterLog,

0 commit comments

Comments
 (0)