File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11import { getActiveReleasesOrUpdate } from '~/data/release-data' ;
22
33export const loader = async ( ) => {
4- return await getActiveReleasesOrUpdate ( ) ;
4+ return Response . json ( await getActiveReleasesOrUpdate ( ) , {
5+ headers : {
6+ 'Access-Control-Allow-Origin' : '*' ,
7+ 'Access-Control-Allow-Methods' : 'GET, OPTIONS' ,
8+ 'Access-Control-Allow-Headers' : 'Content-Type' ,
9+ } ,
10+ } ) ;
511} ;
Original file line number Diff line number Diff line change 11import { getReleasesOrUpdate } from '~/data/release-data' ;
22
33export const loader = async ( ) => {
4- return await getReleasesOrUpdate ( ) ;
4+ return Response . json ( await getReleasesOrUpdate ( ) , {
5+ headers : {
6+ 'Access-Control-Allow-Origin' : '*' ,
7+ 'Access-Control-Allow-Methods' : 'GET, OPTIONS' ,
8+ 'Access-Control-Allow-Headers' : 'Content-Type' ,
9+ } ,
10+ } ) ;
511} ;
You can’t perform that action at this time.
0 commit comments