Skip to content

add permissions to allow OPTIONS request#2

Open
esteban-serfe wants to merge 1 commit into
magento-dockerhub:masterfrom
esteban-serfe:master
Open

add permissions to allow OPTIONS request#2
esteban-serfe wants to merge 1 commit into
magento-dockerhub:masterfrom
esteban-serfe:master

Conversation

@esteban-serfe

Copy link
Copy Markdown

Edited pound.cfg config file to allow to pass OPTIONS request into the Magento instance.

This merge allows to pass from TSL container all the request using the OPTIONS header into the chain of request. This is required when using CORS on the REST API calls.

Description

To allow to make the OPTIONS calls from the pound system into the chain up to Magento to decide the response, we need to allow pound to handle this http method.
Without this change the OPTIONS call returns a 501 Not implemented error code on the OPTION call.
This is only required when using CORS to allow to use the Magento API from another domain.

Fixed Issues (if relevant)

Cannot send issues into the repository as the option is not available

Manual testing scenarios

Without the merge request:
curl -v --location --request OPTIONS 'https://magento2.docker/rest/all/V1/integration/admin/token''
Response code is 501 Not implemented

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages

Edited pound.cfg config file to allow to pass OPTIONS request into the Magento instance.
magento-devops-reposync-svc pushed a commit that referenced this pull request Mar 6, 2026
MCLOUD-14192: Cloud tools October Release #2
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.

1 participant