code: public CorsRule withAllowedOrigins(String... allowedOrigins) {
          if (this.allowedOrigins == null) {
              setAllowedOrigins(new java.util.ArrayList<String>(allowedOrigins.length));
          }
          for (String ele : allowedOrigins) {
              this.allowedOrigins.add(ele);
          }
          return this;
      }
docs: <p>
  One or more response headers that you want users to be able to access from their applications (for example, from
  a JavaScript <code>XMLHttpRequest</code> object).
  </p>
  <p>
  Each CORS rule must have at least one <code>AllowedOrigins</code> element. The string value can include only one
  wildcard character (*), for example, http://*.example.com. Additionally, you can specify only one wildcard
  character to allow cross-origin access for all origins.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAllowedOrigins(java.util.Collection)} or {@link #withAllowedOrigins(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param allowedOrigins
  One or more response headers that you want users to be able to access from their applications (for
  example, from a JavaScript <code>XMLHttpRequest</code> object).</p>
  <p>
  Each CORS rule must have at least one <code>AllowedOrigins</code> element. The string value can include
  only one wildcard character (*), for example, http://*.example.com. Additionally, you can specify only one
  wildcard character to allow cross-origin access for all origins.
  @return Returns a reference to this object so that method calls can be chained together.