title: Is there a way to set rest configuration headers from property file values?
body: <p>Here I'm trying to access the global property from properties file and set it in enableCORS header in rest configuration like</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns:camel="http://camel.apache.org/schema/spring"
      xmlns:prop="http://camel.apache.org/schema/placeholder"
      xsi:schemaLocation="
         http://www.springframework.org/schema/beans    
         http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
         http://camel.apache.org/schema/spring
         http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
  
   &lt;camelContext xmlns="http://camel.apache.org/schema/spring" streamCache="true" id="service-v1.0.0"&gt; 
  
  &lt;propertyPlaceholder id="a-properties" location="classpath:model.properties" xmlns="http://camel.apache.org/schema/spring" /&gt;
      &lt;restConfiguration component="servlet" bindingMode="auto" prop:enableCORS="cors-header-enabled" /&gt; 
  
  &lt;/camelContext&gt;
  </code></pre>
  
  <p>but when I do so. I'm getting an error like </p>
  
  <blockquote>
    <p>cvc-complex-type.3.2.2: Attribute 'prop:enableCORS' is not allowed to
    appear in element 'restConfiguration'</p>
  </blockquote>
  
  <p>How do I set and what should I change to make it work. </p>
  
  <p>In my case there will be many service xmls and changing for each property will be tedious. Is there any workaround?</p>
  
  <p>Thanks in advance!</p>