diff --git a/src/main/scala/com/ing/wbaa/rokku/proxy/api/directive/ProxyDirectives.scala b/src/main/scala/com/ing/wbaa/rokku/proxy/api/directive/ProxyDirectives.scala index afae21e6..d4e0f124 100644 --- a/src/main/scala/com/ing/wbaa/rokku/proxy/api/directive/ProxyDirectives.scala +++ b/src/main/scala/com/ing/wbaa/rokku/proxy/api/directive/ProxyDirectives.scala @@ -1,8 +1,12 @@ package com.ing.wbaa.rokku.proxy.api.directive import akka.http.scaladsl.model._ -import akka.http.scaladsl.model.headers.{ RawHeader, `Access-Control-Allow-Origin`, `Raw-Request-URI` } -import akka.http.scaladsl.server.{ Directive, Directive0, Directive1 } +import akka.http.scaladsl.model.headers.RawHeader +import akka.http.scaladsl.model.headers.`Access-Control-Allow-Origin` +import akka.http.scaladsl.model.headers.`Raw-Request-URI` +import akka.http.scaladsl.server.Directive +import akka.http.scaladsl.server.Directive0 +import akka.http.scaladsl.server.Directive1 import com.ing.wbaa.rokku.proxy.data._ import com.ing.wbaa.rokku.proxy.metrics.MetricsFactory import com.ing.wbaa.rokku.proxy.provider.aws.SignatureHelpersCommon._ @@ -235,6 +239,7 @@ object ProxyDirectives extends LazyLogging { RawHeader("Access-Control-Allow-Headers", "*")) ++ oldHeaders } } else { + logger.info("Wont add cors, request: {}", request) pass } }