akka / akka-http

The Streaming-first HTTP server/module of Akka
https://doc.akka.io/docs/akka-http
Other
1.34k stars 594 forks source link

The akka.http.cors package is not exist #4374

Closed LetAmericaGreatAgain closed 2 months ago

LetAmericaGreatAgain commented 2 months ago

I am using Java and my akka http dependency is as follows: xml com.typesafe.akka akka-http_3 10.6.0-M1 On the official website, I read that "The directive uses config defined under akka.http.cors, or an explicitly provided CorsSettings instance." However, I cannot find the akka.http.cors package. How can I resolve the CORS issue?

johanandren commented 2 months ago

The CORS support was introduced with the 10.6.1 release so you need to upgrade to use it. You should see what version of the library the docs are for by the version number up top left on the documentation navigation bar.