Quote:
Originally Posted by qualiteam
Please check how \XLite\Controller\Customer\Rest and \XLite\Controller\Customer\Autocomplete controllers return JSON data.
I think this should help.
|
Thank you for your reply! I completely forgot about adding headers, but adding them did not solve my issue. I still kept receiving raw html of page on which my script was being executed. I solved this by using jQuery.ajax() post method instead and it worked just fine. But I still do not understand why I could not get core.post() to work.