Issue #3906
Updated by milan over 6 years ago
Pulp's REST API validates that only acceptable fields are submitted with each request. The list of fields does not include the csrf token. As a result of this validation, the browsable API forms produce responses that look like this: <pre> HTTP 400 Bad Request Allow: GET, POST, HEAD, OPTIONS Content-Type: application/json Vary: Accept { "csrfmiddlewaretoken": [ "Unexpected field" ] } </pre> We need to investigate how to configure DRF to stop including this field with each form. Otherwise a fix from comment 3 would be appropriate. h3. Notes To easily reproduce, navigate your browser to e.g http://localhost:8000/pulp/api/v3/repositories/ and create a repository by filling-in the create repository form.