I hava a problem with 'Control-Allow-Origin'
leifermendez opened this issue · 2 comments
Hi @leifermendez ,
I have also went across this kind of problem, there are two ways to solve this problem,
-
In you laravel project public/index.php file in top most add
header("Access-Control-Allow-Origin: *"); header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); header('Access-Control-Allow-Headers: Origin, Content-Type, Accept, Authorization, X-Request-With'); header('Access-Control-Allow-Credentials: true');
-
If you are using chrome browser then you can add [this extension named CORS].(https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en)
Hopping this will help :)
@leifermendez try @binitghetiya because this issue has nothing to do with the package itself. i think. will close this issue now, but feel free to re-open it if you need more explanation.