headers to matrix delegation files

This commit is contained in:
Anton Iakimov 2024-06-03 12:03:19 +02:00
parent 826004688c
commit 3199999787
No known key found for this signature in database
1 changed files with 30 additions and 0 deletions

View File

@ -16,6 +16,36 @@ const nextConfig = {
images: {
domains: ['avatars.githubusercontent.com'],
},
async headers() {
return [
{
source: '/.well-known/matrix/client',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
{
key: 'Content-Type',
value: 'application/json',
},
],
},
{
source: '/.well-known/matrix/server',
headers: [
{
key: 'Access-Control-Allow-Origin',
value: '*',
},
{
key: 'Content-Type',
value: 'application/json',
},
],
},
]
},
}
export default withMDX(nextConfig)