View Javadoc

1   package com.atlassian.plugins.rest.common.security;
2   
3   /**
4    * HTTP Headers for Cross-Origin Resource Sharing
5    */
6   public enum CorsHeaders
7   {
8       ACCESS_CONTROL_EXPOSE_HEADERS("Access-Control-Expose-Headers"),
9       ACCESS_CONTROL_ALLOW_HEADERS("Access-Control-Allow-Headers"),
10      ACCESS_CONTROL_ALLOW_METHODS("Access-Control-Allow-Methods"),
11      ACCESS_CONTROL_MAX_AGE("Access-Control-Max-Age"),
12      ACCESS_CONTROL_ALLOW_ORIGIN("Access-Control-Allow-Origin"),
13      ACCESS_CONTROL_ALLOW_CREDENTIALS("Access-Control-Allow-Credentials"),
14      ACCESS_CONTROL_REQUEST_HEADERS("Access-Control-Request-Headers"),
15      ACCESS_CONTROL_REQUEST_METHOD("Access-Control-Request-Method"),
16      ORIGIN("Origin");
17  
18      private final String value;
19  
20      CorsHeaders(String value)
21      {
22          this.value = value;
23      }
24  
25      public String value() {
26          return value;
27      }
28  
29  }