File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ import { createFileRoute } from '@tanstack/react-router';
55import { router } from '@/server/router' ;
66
77const handler = new RPCHandler ( router , {
8- plugins : [ new CORSPlugin ( ) , new ResponseHeadersPlugin ( ) ] ,
8+ plugins : [
9+ new CORSPlugin ( {
10+ origin : '*' ,
11+ } ) ,
12+ new ResponseHeadersPlugin ( ) ,
13+ ] ,
914} ) ;
1015
1116async function handle ( { request } : { request : Request } ) {
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ export default defineConfig(({ mode }) => {
1717 const env = loadEnv ( mode , process . cwd ( ) , 'VITE_' ) ;
1818 return {
1919 server : {
20- cors : {
21- origin : / h t t p s ? : \/ \/ ( [ A - Z a - z 0 - 9 \- . ] + ) ? \. c l e v e r - c l o u d \. c o m $ / ,
22- } ,
2320 port : env . VITE_PORT ? Number ( env . VITE_PORT ) : 3000 ,
2421 strictPort : true ,
2522 } ,
You can’t perform that action at this time.
0 commit comments