Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from

Conversation

michaelG42
Copy link

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

@SuiteBot
Copy link

SuiteBot commented Jul 2, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CORS Error: Missing PATCH Method in Access-Control-Allow-Methods Header
2 participants