09:39:43.106 08/04/2022 Worker-0 agw-policy-set-deployment.01 ERROR
Error deploying policy cors-mule-3060876 to application 00322295yaml
org.mule.runtime.deployment.model.api.policy.PolicyRegistrationException: Error occured registering policy 'cors-mule-3060876-proxy'
at org.mule.runtime.module.deployment.impl.internal.application.MuleApplicationPolicyProvider.addPolicy(MuleApplicationPolicyProvider.java:113)
at com.mulesoft.mule.runtime.gw.model.ApiImplementation.addPolicy(ApiImplementation.java:87)
at com.mulesoft.mule.runtime.gw.policies.deployment.DefaultPolicyDeployer.deploy(DefaultPolicyDeployer.java:64)
.
.
.
.
Caused by: org.mule.modules.cors.kernel.configuration.exception.CorsConfigurationException: CORS does not allowed more than a configuration for each origin.
at org.mule.modules.cors.kernel.CorsKernel.checkNoDuplicateOrigins(CorsKernel.java:81)
at org.mule.modules.cors.kernel.CorsKernel.initialise(CorsKernel.java:65)
at com.mulesoft.extension.policies.cors.adapter.CorsConfigurationAdapter.initialise(CorsConfigurationAdapter.java:47)
at org.mule.runtime.core.api.lifecycle.LifecycleUtils.initialiseIfNeeded(LifecycleUtils.java:56)
at org.mule.runtime.core.api.lifecycle.LifecycleUtils.initialiseIfNeeded(LifecycleUtils.java:117)
Origins (Comma separated list of allowed origins) parameter configured with duplicate domain as shown below.
To resolve this error make sure the "Origins" field in the CORS policy is having unique urls defined. In above case "https://uat-test2.mulesoft.com" was duplicated and removing one entry helped to resolved above error.
001122034

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.