can you submit JSON payload in HTTP body from HTML form? Assume CORS policy doesn't…
- User
can you submit JSON payload in HTTP body from HTML form? Assume CORS policy doesn't allow POST requests to the target
Assistant
Yes, you can submit a JSON payload in the HTTP body from an HTML form, even if the target server doesn't allow POST requests. Here are the steps you can follow:
- Use the property to set the value of the form's attribute to a JSON string:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.