CORS error: method is not allowed by Access-Control-Allow-Methods

The browser asked permission to use a specific verb, and the preflight did not allow it. Open the Access-Control-Request-Method header in the OPTIONS request. A frontend update might have switched to PUT, PATCH or DELETE while the server policy still lists the older methods.
Confirm that the route implements the verb. Add it to Access-Control-Allow-Methods where appropriate and check that the proxy sends OPTIONS to the intended handler.
Access-Control-Allow-Origin: https://app.example.com Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS
The headers below authorize PUT for the trusted frontend. The API route still has to implement PUT. Once the browser sends it, inspect its own response separately if it returns a 405.
After OPTIONS passes, open the actual request and check whether the route accepts the newly permitted method.