You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
The static client resources are loaded from the root package, which gives clients access to the entire backend jar.
For example, run the server and then try to access:
http://localhost:8080/application.conf
or
http://localhost:8080/MainKt.class
Both of these work!
The copy task at https://github.com/Kotlin/full-stack-web-jetbrains-night-sample/blob/master/server/build.gradle.kts#L55-L57 should be modified to put the resources into a subdirectory e.g.
web
, and then ktor configured to serve static resources from theweb
package only.The text was updated successfully, but these errors were encountered: