mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-30 04:02:00 +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)
|
return format(date, dateFormat)
|
||||||
})
|
})
|
||||||
|
|
||||||
// cors
|
|
||||||
eleventyConfig.setServerOptions({
|
|
||||||
middleware: function (req, res, next) {
|
|
||||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
|
||||||
next();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: { input: "src", output: "_site", data: "_data" },
|
dir: { input: "src", output: "_site", data: "_data" },
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user