re-add open access-control headers to feeds
1 file changed, 0 insertions(+), 8 deletions(-)
changed files
M domain/content/builder/builder.go → domain/content/builder/builder.go
@@ -35,12 +35,6 @@ Storage storage.Writer `conf:"-"` Repo *vcs.Repository `conf:"-"` } -var feedHeaders = map[string]string{ - "Access-Control-Allow-Origin": "*", - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Max-Age": "3600", -} - func joinSourcePath(src string) func(string) string { return func(rel string) string { return filepath.Join(src, rel)@@ -165,7 +159,6 @@ file := &storage.File{ Title: title, LastModified: matchingPosts[0].Date, ContentType: "application/xml", - Headers: feedHeaders, Path: path.Join("/tags", tag, "atom.xml"), FSPath: path.Join("/tags", tag, "atom.xml"), }@@ -199,7 +192,6 @@ file := &storage.File{ Title: config.Title, LastModified: cc.Posts[0].Date, ContentType: "application/xml", - Headers: feedHeaders, Path: "/atom.xml", FSPath: "/atom.xml", }