mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Fix config
This commit is contained in:
parent
4be6cf0eec
commit
67b7905e66
@ -26,6 +26,23 @@ module.exports = removeImports({
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: "/.well-known/:slug*",
|
||||
headers: [
|
||||
{
|
||||
key: "Access-Control-Allow-Origin",
|
||||
value: "*"
|
||||
},
|
||||
{
|
||||
key: "Access-Control-Allow-Methods",
|
||||
value: "GET, POST, OPTIONS"
|
||||
},
|
||||
{
|
||||
key: "Access-Control-Allow-Headers",
|
||||
value: "Content-Type, Authorization"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
source: "/api/:slug*",
|
||||
headers: [
|
||||
@ -62,21 +79,6 @@ module.exports = removeImports({
|
||||
value: "max-age=31536000; includeSubDomains; preload"
|
||||
},
|
||||
],
|
||||
source: "/api/.well-known/:slug*",
|
||||
headers: [
|
||||
{
|
||||
key: "Access-Control-Allow-Origin",
|
||||
value: "*"
|
||||
},
|
||||
{
|
||||
key: "Access-Control-Allow-Methods",
|
||||
value: "GET, POST, PUT, DELETE, OPTIONS",
|
||||
},
|
||||
{
|
||||
key: 'Cache-Control',
|
||||
value: 'no-cache, max-age=0, must-revalidate'
|
||||
}
|
||||
],
|
||||
},
|
||||
];
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user