Hcs.Plug.Cors

hcs · API reference

type config = {
  origins : string list;
  methods : string list;
  headers : string list;
  max_age : int option;
  credentials : bool;
}
val default_config : config
val create : 
  ?config:config ->
  unit ->
  (Server.request -> Server.response) ->
  Server.request ->
  Server.response