summaryrefslogtreecommitdiff
path: root/cmd/podman/system/service_abi.go
diff options
context:
space:
mode:
authorBoaz Shuster <boaz.shuster.github@gmail.com>2021-06-02 23:32:58 +0300
committerBoaz Shuster <boaz.shuster.github@gmail.com>2021-06-04 16:14:52 +0300
commit2810c478a7f2497fad1300ce63c8476bb50a6ad0 (patch)
tree98ec1d04e4755d16ac92cc3f3c0071be1e01b80f /cmd/podman/system/service_abi.go
parentb64e20a53d3f5de262f2c475be490b35977d5f32 (diff)
downloadpodman-2810c478a7f2497fad1300ce63c8476bb50a6ad0.tar.gz
podman-2810c478a7f2497fad1300ce63c8476bb50a6ad0.tar.bz2
podman-2810c478a7f2497fad1300ce63c8476bb50a6ad0.zip
Add CORS support
[NO TESTS NEEDED] Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Diffstat (limited to 'cmd/podman/system/service_abi.go')
-rw-r--r--cmd/podman/system/service_abi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/system/service_abi.go b/cmd/podman/system/service_abi.go
index 364663323..d59a45564 100644
--- a/cmd/podman/system/service_abi.go
+++ b/cmd/podman/system/service_abi.go
@@ -72,7 +72,7 @@ func restService(opts entities.ServiceOptions, flags *pflag.FlagSet, cfg *entiti
}
infra.StartWatcher(rt)
- server, err := api.NewServerWithSettings(rt, opts.Timeout, listener)
+ server, err := api.NewServerWithSettings(rt, listener, api.Options{Timeout: opts.Timeout, CorsHeaders: opts.CorsHeaders})
if err != nil {
return err
}