From 648191bb47376ef42f952dcbcfd5949eba5543cc Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Wed, 29 May 2019 08:46:36 -0400 Subject: [PATCH] Allow all CORS origins for the API live demo This will allow developers to iterate on the web interface without needing to spin up an API server. Change-Id: I3838dbe3fea45e7139c4a50ab2e402038322acfc --- playbooks/live-demo.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/playbooks/live-demo.yaml b/playbooks/live-demo.yaml index 19c3575..99606ee 100644 --- a/playbooks/live-demo.yaml +++ b/playbooks/live-demo.yaml @@ -10,9 +10,12 @@ ara_api_wsgi_server: gunicorn ara_api_allowed_hosts: - api.demo.recordsansible.org + # TODO: Figure out if it's possible to set ara-web to use demo from localhost:3000 + ara_api_cors_origin_allow_all: true ara_api_cors_origin_whitelist: - - web.demo.recordsansible.org - - logs.openstack.org + - https://web.demo.recordsansible.org + - http://logs.openstack.org + - http://localhost:3000 # ara_web ara_web_fqdn: web.demo.recordsansible.org ara_web_api_endpoint: "https://api.demo.recordsansible.org"