Skip to content

Commit

Permalink
chore: enable CORS trace logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewWestberg committed Oct 10, 2024
1 parent 9f5ae64 commit 4216c8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ fun Application.installCORS() {
allowMethod(HttpMethod.Put)
allowMethod(HttpMethod.Patch)
allowMethod(HttpMethod.Delete)

// force POST to be allowed even though it is assumed to be a default
this.methods.add(HttpMethod.Post)

allowHeader(HttpHeaders.Authorization)
allowHeader(RecaptchaHeaders.Platform)
allowHeader(RecaptchaHeaders.Token)
Expand Down
3 changes: 3 additions & 0 deletions newm-server/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<minimumEventLevel>WARN</minimumEventLevel>
<minimumBreadcrumbLevel>DEBUG</minimumBreadcrumbLevel>
</appender>

<logger name="io.ktor.server.plugins.cors.CORS" level="TRACE"/>

<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="Sentry"/>
Expand Down

0 comments on commit 4216c8e

Please sign in to comment.