Formail offers a streamlined approach to form management, enabling instant notifications and dynamic data handling without pre-structured forms. Ideal for developers, small businesses, and anyone needing efficient form submission management, Formail simplifies the process, making it accessible and user-friendly.
We are experiencing issues with submitting forms when the Content-Type is set to application/json. Despite setting the appropriate CORS headers in next.config.mjs, requests from the client are blocked due to CORS policy.
Expected Behavior
When submitting data to /submit/:formId with Content-Type: application/json, the server should accept the data without any CORS errors.
The server should correctly parse JSON formatted data and respond appropriately.
Current Behavior
Fetch requests with Content-Type: application/json are failing with a CORS policy error.
Description
We are experiencing issues with submitting forms when the Content-Type is set to application/json. Despite setting the appropriate CORS headers in next.config.mjs, requests from the client are blocked due to CORS policy.
Expected Behavior
Current Behavior
Steps to Reproduce