It's a nice article and thanks for this. I will use this to my new project. As others, I am also curious about the test code and so, is it possible to share the github repo to me too?
However, I am facing an issue. If somehow you may suggest me any article in such case, I'll be glad Sidhhu.
I am deploying my nuxt app using nginx as reverse proxy server in one docker container.
I deployed my laravel api in another docker container and using nginx as webserver.
Now, even if everything done quite okay "to me" by fixing cors, when calling api from nuxt app it shows this error in chrome:
Access to XMLHttpRequest at 'https://api.laraecom.com/api/v1/users/auth/social/login' from origin 'https://laraecom.com:4430' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://laraecom.com:4430, *', but only one is allowed.
If you can suggest anything that will be a great help! I am stuck here more than a week!
How can we test it using postman, please answer.
I'll send you git repo, you can download
Hi, please can I get the repo too?
I really need to implement this via API instead of browser
Hi Sidhhu,
It's a nice article and thanks for this. I will use this to my new project. As others, I am also curious about the test code and so, is it possible to share the github repo to me too?
Thanks in advance!
Sure, I'll share
github.com/siddhuphp/laravel_sanctum
Thank you! I will surely help me to look forward!
Update: I was checking the codebase you share. It seems that mistakenly there are no test code for sanctum + socialite?
You are right, I lost some where.
Anyway I'm doing with with new instance with laravel 9.
I'll update the article
That's so helpful!
However, I am facing an issue. If somehow you may suggest me any article in such case, I'll be glad Sidhhu.
I am deploying my nuxt app using nginx as reverse proxy server in one docker container.
I deployed my laravel api in another docker container and using nginx as webserver.
Now, even if everything done quite okay "to me" by fixing cors, when calling api from nuxt app it shows this error in chrome:
Access to XMLHttpRequest at 'https://api.laraecom.com/api/v1/users/auth/social/login' from origin 'https://laraecom.com:4430' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://laraecom.com:4430, *', but only one is allowed.
If you can suggest anything that will be a great help! I am stuck here more than a week!
Thanks in advance!
You have to enable cors
This article will help you dev.to/keikesu0122/a-simple-way-to...
I'm not sure, How to test using Postman.
You need at least one sample html page with some google js code