-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
feature / enhancementNew feature or requestNew feature or request
Milestone
Description
Describe the problem
With the new csrf protection I can't receive webhooks without disabling csrf on all routes
Describe the proposed solution
In the csrf config, it would be nice to have a "exclude" setting to disable csrf protection in some routes.
// svelte.config.js
const config = {
kit: {
csrf: {
checkOrigin: true,
// exclude: [ "/webhooks/*" ],
// AND/OR
// exclude [ "/webhooks/1", "/webhooks/2" ]
},
},
};
export default config;
and/or
// src/routes/+(page.)server.js
export const csrf = false;
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
cdcarson, dangreaves, sidharthramesh, Bluebie, olinelson and 41 more
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or request