I am facing the strange problem on the wordpress website . What is really happening that i have a form in the wordpress website main page and the form submit the data in the Codeigniter Controller function .
Whenever i submit the form i got this message
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://xxx/ci/user/signup/. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Where as if i putt the same code in the php file at this path
It submit the data sucessfully and everything goes well . But whenever i try to submit data from the wordpress site it gives me that error . I also check the htaccess file and limit it worpdress only commands .
I am not getting why i am getting this issue when i am using it on same domain and both time i use http to access the url .