Skip to content

Commit 0ca902c

Browse files
committed
Add ACAH conf.
1 parent a04c3b2 commit 0ca902c

File tree

1 file changed

+2
-1
lines changed
  • EasyRest/src/main/java/tech/dbgsoftware/easyrest/network

1 file changed

+2
-1
lines changed

EasyRest/src/main/java/tech/dbgsoftware/easyrest/network/NettyInit.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class NettyInit implements BaseConfiguration {
3939
private CustomizeChannel customizeChannel = new CustomizeChannel();
4040
private ChannelOptionBuilder channelOptionBuilder = new ChannelOptionBuilder().buildWithDefaultOptions();
4141
private Map<String, Object> properties = new HashMap<>();
42-
private List<String> AccessControlAllowHeaders = Arrays.asList("DNT","X-Mx-ReqToken","Keep-Alive","User-Agent","X-Requested-With","If-Modified-Since","Cache-Control","Content-Type","Authorization");
42+
private List<String> AccessControlAllowHeaders = new ArrayList<>();
4343
private ChannelFuture channelFuture;
4444
private static final Logger LOGGER = LoggerFactory.getLogger(NettyInit.class);
4545

@@ -67,6 +67,7 @@ public ServerBootstrap build(String _systemName){
6767
bossEventLoopGroup = new NioEventLoopGroup(ioExecutors);
6868
workerEventLoopGroup = new NioEventLoopGroup(ioExecutors);
6969
}
70+
AccessControlAllowHeaders.addAll(Arrays.asList("DNT","X-Mx-ReqToken","Keep-Alive","User-Agent","X-Requested-With","If-Modified-Since","Cache-Control","Content-Type","Authorization"));
7071
return initServerBootstrap();
7172
}
7273

0 commit comments

Comments
 (0)