From c891d5e7cef3afb7d2aa2946ba82bdb80b795809 Mon Sep 17 00:00:00 2001 From: Thilini Shanika Date: Wed, 20 Sep 2023 09:05:50 +0530 Subject: [PATCH] Add localhost as allowed origin in tomcat CORS filter --- .../artifacts/AM/configFiles/corsACACTest/deployment.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/corsACACTest/deployment.toml b/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/corsACACTest/deployment.toml index 6d1863d880..e30281ebf6 100755 --- a/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/corsACACTest/deployment.toml +++ b/modules/integration/tests-integration/tests-backend/src/test/resources/artifacts/AM/configFiles/corsACACTest/deployment.toml @@ -76,6 +76,12 @@ allow_methods = ["GET", "PUT", "POST", "DELETE", "PATCH", "OPTIONS"] allow_headers = ["authorization","Access-Control-Allow-Origin","Content-Type","SOAPAction","Authorization"] allow_credentials = true +[cors] +allow_any_origin = false +allowed_origins = [ + "http://localhost", "http://localhost:8080" +] + [apim.sdk] supported_languages = ["android", "java", "csharp", "dart", "flash", "groovy", "javascript", "jmeter", "perl", "php", "python", "ruby", "swift5", "clojure"]