add permissions to allow OPTIONS request #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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