seangray-dev / formail-app

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.
https://www.formail.dev
MIT License
1 stars 0 forks source link

fix: Support Content-Type: application/json and Resolve CORS Issues in Form Submission Endpoint #54

Closed seangray-dev closed 5 months ago

seangray-dev commented 6 months ago

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

seangray-dev commented 6 months ago

Also need to add new example page to the docs