fix back api to rewrite

pull/9078/head
Agusti Fernandez Pardo 2022-04-15 19:09:35 +02:00
parent 51cada224b
commit 3ad84a7c15
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ module.exports = withTM({
async headers() {
return [
{
// matching all routes, because we redirect to API in rewrites
source: "/:path*",
// matching all API routes
source: "/api/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" },