Skip to content

Environment variables for REST API and GraphQL headers for Adobe Commerce Cloud #89

Answered by git-hari-j
git-hari-j asked this question in Q&A
Discussion options

You must be logged in to vote

Just FYI. Even after making all changes suggested, nothing worked. I then updated the app/etc/env.php on the cloud instance with the following
.....
'system' => [
'default' => [
'catalog' => ['search' => ['engine' => 'opensearch', 'opensearch_server_hostname' => 'http: //opensearch.internal', 'opensearch_server_port' => 9200]],
'web' => [
'graphql' => [
'cors_allowed_origins' => '',
'cors_allowed_methods' => 'GET, POST, OPTIONS',
'cors_allowed_headers' => 'content-type, store, authorization, x-magento-cache-id, x-recaptcha',
'cors_max_age' => '86400',
'cors_allow_credentials' => 1,
],
'api_rest' => [
'cors_allowed_origins' => '
',
'cors_allowed_methods' => 'GET, POST, OPTIONS',
'cors_allow…

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@git-hari-j
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@git-hari-j
Comment options

Comment options

You must be logged in to vote
1 reply
@git-hari-j
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by git-hari-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants