File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " labelzoom-cf-api-proxy" ,
3
- "version" : " 0 .0.0" ,
3
+ "version" : " 1 .0.0" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
6
"deploy" : " wrangler deploy" ,
Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ export default {
89
89
return Response . redirect ( request . url + '/' + url . search ) ;
90
90
}
91
91
92
- return new Response ( `Not found` , { status : 404 } ) ;
92
+ // TODO: Eventually we'll wall off access to the rest of the endpoints once everything has been fully migrated
93
+ // return new Response(`Not found`, { status: 404 });
94
+
95
+ // Fallthrough behavior, proxy request to Spring Web
96
+ return responseWithAllowOrigin (
97
+ await fetch (
98
+ requestProxyToBackend ( request , url , env )
99
+ ) ,
100
+ request . headers . get ( 'Origin' ) ?? '*'
101
+ ) ;
93
102
} ,
94
103
} satisfies ExportedHandler < Env > ;
You can’t perform that action at this time.
0 commit comments