I have installed codeigniter application in a subfolder, whenever i send ajax request i get this error:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
My .htaccess is:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
My config.php is:
$config['base_url'] = 'http://jmwglobal.com/locker/';
I don't know why i am getting this error. I have tried almost all remedies available on internet/stackoverflow but no solution found.