-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ktor Client JS: request to /example requests http://localhost/example #1695
Labels
Comments
Hi @Ribesg, thanks for the report. I'll be fixed in the next minor release |
For anyone else looking, this bug is still present in 1.3.2. :) |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
I can still reproduce it using Ktor 1.6.0 when running a development server with the following code: GlobalScope.launch {
val client = HttpClient(Js)
val r = client.get<String>("/example")
} |
Any updates? Still present in 1.6.7. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ktor Version and Engine Used (client or server and name)
Ktor Client Common 1.3.1, in browser (JS)
Describe the bug
request to /example requests http://localhost/example
To Reproduce
Steps to reproduce the behavior:
./runServer.sh
https://yourserver:12345
https://localhost/api/auth/login
instead ofhttps://yourserver:12345/api/auth/login
in the consoleExpected behavior
Requests should use the current
location.origin
when none is provided in the browserThe text was updated successfully, but these errors were encountered: