Skip to content

Scheduling infrastructure for absolutely everyone.

fix rewrite headres

Agusti Fernandez Pardo51cada224b7f
diff --git a/next.config.js b/next.config.js
index fa5bc84e10a..fd93748c8cb 100644
--- a/next.config.js
+++ b/next.config.js
@@ -13,8 +13,8 @@ module.exports = withTM({
async headers() {
return [
{
- // matching all API routes
- source: "/api/:path*",
+ // matching all routes, because we redirect to API in rewrites
+ source: "/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" },