|
@@ -45,6 +45,7 @@ func askCredentials(c *context.Context, status int, text string) {
|
|
|
c.HandleText(status, text)
|
|
c.HandleText(status, text)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// HTTPContexter is a macaron handler
|
|
|
func HTTPContexter() macaron.Handler {
|
|
func HTTPContexter() macaron.Handler {
|
|
|
return func(c *context.Context) {
|
|
return func(c *context.Context) {
|
|
|
if len(setting.HTTP.AccessControlAllowOrigin) > 0 {
|
|
if len(setting.HTTP.AccessControlAllowOrigin) > 0 {
|