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
When one picks the HSTS and CORS plugins (IDEA plugin or online generator, doesn't matter), plugins/HTTP.kt will not compile. This is due to two issues:
Missing imports
io.ktor.server.plugins.hsts.* and io.ktor.server.plugins.cors.routing.* should also be imported, with the latter being quite important, since someone might not read the documentation and import the deprecated option (cors.CORS).
When one picks the HSTS and CORS plugins (IDEA plugin or online generator, doesn't matter),
plugins/HTTP.kt
will not compile. This is due to two issues:Missing imports
io.ktor.server.plugins.hsts.*
andio.ktor.server.plugins.cors.routing.*
should also be imported, with the latter being quite important, since someone might not read the documentation and import the deprecated option (cors.CORS).Out-of-date code
The
install(CORS)
call contains the following:This doesn't work.
method
should beallowMethod
, andheader
should beallowHeader
The text was updated successfully, but these errors were encountered: