1
votes

I'm trying to set up this test environment, involving running the ionic server, and an apache server running Magento. I have the following setup:

Everything looks find and i can see the app communicating with Magento, the problem is that Magento API is using oAuth for their API authentication, so im getting a oAuth signature invalid error, because of the proxy i set up. Any other call from magento without requiring oAuth works fine, but i still need it for the APIs. What's the best configuration to run this kind of environment?

1
I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead? - Enigmativity
@Enigmativity it's not really Magento related, its more about apache, cors, oAuth and basic environment setup, what other stackexchange sites you suggest posting this to? - Yehia A.Salam

1 Answers

0
votes

Okay so the best workflow for ionic (from my perspective) when developing with the local server, is simply to launch Chromw with the flags:

"\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security --user-data-dir

And then you can open the local html file by typing to the address bar:

file:///C:/stage/path-to-project/www/index.html

This was way simpler than using the ionic proxy.