Skip to content

Commit f940c48

Browse files
donny-dontnex3
authored andcommitted
Add User-Agent to headers (#129)
1 parent 441963f commit f940c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/hybrid/server.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ hybridMain(StreamChannel channel) async {
103103

104104
// Add CORS headers for browser testing
105105
response.headers.set('access-control-allow-origin', '*');
106-
response.headers.set(
107-
'access-control-allow-headers', 'X-Random-Header,X-Other-Header');
106+
response.headers.set('access-control-allow-headers',
107+
'X-Random-Header,X-Other-Header,User-Agent');
108108
response.headers.set('access-control-allow-methods',
109109
'GET, PUT, POST, DELETE, PATCH, HEAD');
110110

0 commit comments

Comments
 (0)