salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.26k stars 2.03k forks source link

Fix #10462 - Add PATCH method to Access-Control-Allow-Methods header … #10463

Open michaelG42 opened 2 days ago

michaelG42 commented 2 days ago

Fix #10462 - Add PATCH method to Access-Control-Allow-Methods header to resolve CORS error

Description

This pull request fixes a CORS error by adding the PATCH method to the Access-Control-Allow-Methods header in the SuiteCRM V8 API configuration file. The CORS error occurs when making PATCH requests from a browser, which is required to update records via the SuiteCRM V8 API.

Motivation and Context

This change is required to resolve a CORS error that prevents PATCH requests from being accepted when made from a browser. Without this fix, users are unable to update records via the SuiteCRM V8 API using a PATCH request due to the missing method in the CORS policy.

How To Test This

  1. Make a PATCH request to the SuiteCRM V8 API from a browser.
  2. Verify that the CORS error is resolved and the request is successful.

Types of changes

Final checklist

SuiteBot commented 2 days ago

CLA assistant check
All committers have signed the CLA.