needs to do cors in nginx

This commit is contained in:
Matt Hill
2023-01-06 12:37:23 -07:00
parent a66c1e0e85
commit b93447bafc

View File

@@ -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" },
};