Skip to content

Commit

Permalink
Relax CORS constraints for Grafana.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Oct 25, 2024
1 parent 75af67d commit f410e4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class KvinService(path: List[String], store: Kvin) extends RestHelper with Logga

val CORS_HEADERS: List[(String, String)] = ("Access-Control-Allow-Origin", "*") :: ("Access-Control-Allow-Credentials", "true") :: //
("Access-Control-Allow-Methods", "GET, POST, DELETE, OPTIONS") :: //
("Access-Control-Allow-Headers", "WWW-Authenticate,Keep-Alive,User-Agent,X-Requested-With,Cache-Control,Content-Type") :: Nil
("Access-Control-Allow-Headers", "*") :: Nil

def responseHeaders: List[(String, String)] = CORS_HEADERS ::: S.getResponseHeaders(Nil)

Expand Down

0 comments on commit f410e4a

Please sign in to comment.