CodeIgniter Forums

Full Version: External Call Controller - Failed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm new using CI and I have a little problem.
I have development a website with Wordpress (landing page) and it don't have back-end functionallitys. My client wants to some functionality and I´m using CI to make it. The problem is following: 
From WordPress page ( I want make a ajax request to a Controller_CI method ( to validate login form and later redirect to web system (CI Project), but when I am making ajax request, I see this error in console and it don't make request:

XMLHttpRequest cannot load No 'Access-Control-Allow-Origin'
header is present on the requested resource. Origin '' is therefore not allowed access

I suspect that is cause by .htaccess file rules, but I don't know exactly. I don't want merge WordPress Page with Back-End functionality, so I created a subdomain (root folder CI) and separate it.

I hope can help me, thanks!
(05-25-2017, 09:06 PM)Paradinight Wrote: [ -> ]