You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The protocol which is used for the apollo client should be configurable and not forced to https.
I know you only should communicate with https for secure communication, but in our current environment we are hosting magento and vue storefront inside a k8s cluster. Communication from the internet is https, but communication within the cluster is http because we are already in a secure environment.
Make the agent configurable or update the documentation how to change this to a http agent. I found a workaround/solution by overwriting the apollo config in the middleware.config.js file:
Expected Behavior
The protocol which is used for the apollo client should be configurable and not forced to https.
I know you only should communicate with https for secure communication, but in our current environment we are hosting magento and vue storefront inside a k8s cluster. Communication from the internet is https, but communication within the cluster is http because we are already in a secure environment.
Actual Behavior
Apollo client is created with https agent
magento2/packages/api-client/src/helpers/magentoLink/graphQl.ts
Lines 20 to 21 in a9864fa
magento2/packages/api-client/src/helpers/magentoLink/graphQl.ts
Lines 69 to 77 in a9864fa
Possible Solution
Make the agent configurable or update the documentation how to change this to a http agent. I found a workaround/solution by overwriting the apollo config in the
middleware.config.js
file:Steps to reproduce
No response
What version of Magento 2 integration are you using?
1.0.2
What version of Node.js are you using?
16
What browser (and version) are you using?
What operating system (and version) are you using?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: