About request log from middleware to magento
hi everyone
I hope this message finds you well. I am reaching out today to ask for some guidance regarding a challenge I'm facing. Specifically, I need to inspect the requests (including headers) sent from Nuxt(is middleware) to Magento, and I'm not quite sure about the best way to accomplish this.
I've attempted to log requests in plugins and middleware. While this did give me some request records, it seems that those are only requests made between the browser and the middleware, which isn't seem exactly what I need.
I also tried to intercept requests after creating an
However, this didn't provide me with any different results.
I noticed that
My goal is to obtain the actual requests made to the Magento endpoint, such as https://localhost:3001/graphql?query=query+getStoresAndCurrencies%7BavailableStores%7Bstore_code+__typename%7Dcurrency%7Bavailable_currency_codes+__typename%7D%7D&operationName=getStoresAndCurrencies&variables=%7B%7D and inspect the associated headers.
Could you please provide some guidance on how to achieve this? Any help would be greatly appreciated. Thank you for your time and consideration.
Best regards,
acacius
I hope this message finds you well. I am reaching out today to ask for some guidance regarding a challenge I'm facing. Specifically, I need to inspect the requests (including headers) sent from Nuxt(is middleware) to Magento, and I'm not quite sure about the best way to accomplish this.
I've attempted to log requests in plugins and middleware. While this did give me some request records, it seems that those are only requests made between the browser and the middleware, which isn't seem exactly what I need.
I also tried to intercept requests after creating an
Axios interceptors.request after const client = axios.create(config.axios)However, this didn't provide me with any different results.
I noticed that
@vue-storefront/magento-api imports Apollo, but after checking the corresponding config files in the project, I still didn't find the information I was looking for.My goal is to obtain the actual requests made to the Magento endpoint, such as https://localhost:3001/graphql?query=query+getStoresAndCurrencies%7BavailableStores%7Bstore_code+__typename%7Dcurrency%7Bavailable_currency_codes+__typename%7D%7D&operationName=getStoresAndCurrencies&variables=%7B%7D and inspect the associated headers.
Could you please provide some guidance on how to achieve this? Any help would be greatly appreciated. Thank you for your time and consideration.
Best regards,
acacius