mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-26 02:11:55 +00:00
needs to do cors in nginx
This commit is contained in:
@@ -22,14 +22,6 @@ module.exports = function (eleventyConfig) {
|
||||
return format(date, dateFormat)
|
||||
})
|
||||
|
||||
// cors
|
||||
eleventyConfig.setServerOptions({
|
||||
middleware: function (req, res, next) {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
dir: { input: "src", output: "_site", data: "_data" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user