all repos — homestead @ a0bb10d9dea0d560a0ca4ccc7d9d4bf3848242e7

Code for my website

re-add open access-control headers to feeds

Alan Pearce
commit

a0bb10d9dea0d560a0ca4ccc7d9d4bf3848242e7

parent

2edd98046639d440b7a5a191c1bec2d338f1c7cf

1 file changed, 0 insertions(+), 8 deletions(-)

changed files
M domain/content/builder/builder.godomain/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", }