fix back api to rewrite
parent
51cada224b
commit
3ad84a7c15
|
@ -13,8 +13,8 @@ module.exports = withTM({
|
||||||
async headers() {
|
async headers() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
// matching all routes, because we redirect to API in rewrites
|
// matching all API routes
|
||||||
source: "/:path*",
|
source: "/api/:path*",
|
||||||
headers: [
|
headers: [
|
||||||
{ key: "Access-Control-Allow-Credentials", value: "true" },
|
{ key: "Access-Control-Allow-Credentials", value: "true" },
|
||||||
{ key: "Access-Control-Allow-Origin", value: "*" },
|
{ key: "Access-Control-Allow-Origin", value: "*" },
|
||||||
|
|
Loading…
Reference in New Issue