Optimize CORS settings
This commit is contained in:
@@ -111,3 +111,5 @@ fizz-trace-id:
|
||||
header: X-Trace-Id # default
|
||||
value-strategy: requestId # default, or can be uuid
|
||||
value-prefix: fizz # default
|
||||
|
||||
fizz-cors: true # CORS switch, default true
|
||||
|
||||
@@ -35,7 +35,7 @@ import javax.annotation.Resource;
|
||||
* @author hongqiaowei
|
||||
*/
|
||||
|
||||
@ConditionalOnProperty(name = "cors", havingValue = "true", matchIfMissing = true)
|
||||
@ConditionalOnProperty(name = "fizz-cors", havingValue = "true", matchIfMissing = true)
|
||||
@Configuration
|
||||
public class CorsFilterConfig {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user