Question and answer is powered by AnsPress.io
I am using php and i am getting this error :
No ‘Access-Control-Allow-Origin’ header is present on the requested resource in php
How can I solve it?
Add this code in your page at the header position
<?php header('Access-Control-Allow-Origin: *'); include('config/db.php'); ?>