-1👍
You can do this by following this solution: No ‘Access-Control-Allow-Origin’ header – Laravel
OR
Allow CORS through your .htaccess
by adding the mentioned code
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "*"
Header set Access-Control-Allow-Methods "*"
</IfModule>
Note:
This allow CORS from all hosts so better to allow trusted domain.
Source:stackexchange.com