Skip to content
Advertisement

Bad hostname provided

Passport Version: ^10.1

Laravel Version: 8.77.1

PHP Version: 8.0.9

Database Driver & Version: mysql 8.0.27

I can not get access token. when I call it manual by curl it get this response.

this host name is generate inside the docker container

I’m test 192.168.224.6 ip of docker container but it also not work

JavaScript

Advertisement

Answer

if you don’t use any prefix for passport, it is better to use

APP URL instead docker container name http://docker-nginx

http://docker-nginx/oauth/token wrong

env(‘APP_URL’)/oauth/token correct

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement