We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f89ad6 commit aab66afCopy full SHA for aab66af
1 file changed
src/server.js
@@ -17,10 +17,11 @@ const adjustEndpoints = require('./controllers/adjustEndpoints');
17
const providerApp = express();
18
const healthApp = express();
19
20
-// Middleware - configure JSON parser to accept external-dns content type
+// Middleware - parse all requests as JSON regardless of content-type
21
+// External-DNS uses 'application/external.dns.webhook+json;version=1' but the payload is always JSON
22
providerApp.use(express.json({
23
limit: '10mb',
- type: ['application/json', 'application/external.dns.webhook+json*']
24
+ type: '*/*' // Accept any content-type and parse as JSON
25
}));
26
healthApp.use(express.json());
27
0 commit comments