Added API endpoints for agents load for the homepage

This commit is contained in:
Joao Ramos
2024-02-18 18:04:54 +00:00
parent 703fb0df5f
commit 62b915fbc1
3 changed files with 135 additions and 0 deletions

View File

@@ -35,6 +35,21 @@ const nextConfig = {
},
],
},
{
source: "/api/users/agents",
headers: [
{key: "Access-Control-Allow-Credentials", value: "false"},
{key: "Access-Control-Allow-Origin", value: websiteUrl},
{
key: "Access-Control-Allow-Methods",
value: "POST,OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date",
},
],
},
];
},
};