File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export function FormsManagerProvider({ children }: FormsManagerProps) {
127
127
const initialStateRef = React . useRef < FormState > ( null )
128
128
const getFormDataRef = React . useRef < ( ) => Data > ( ( ) => ( { } ) )
129
129
130
- const actionURL = `${ api } /${ collectionSlug } `
130
+ const actionURL = `${ serverURL } ${ api } /${ collectionSlug } `
131
131
132
132
const initializeSharedDocPermissions = React . useCallback ( async ( ) => {
133
133
const params = {
@@ -301,6 +301,7 @@ export function FormsManagerProvider({ children }: FormsManagerProps) {
301
301
collectionSlug ,
302
302
getUploadHandler ( { collectionSlug } ) ,
303
303
) ,
304
+ credentials : 'include' ,
304
305
method : 'POST' ,
305
306
} )
306
307
Original file line number Diff line number Diff line change @@ -119,8 +119,9 @@ export const OrderableTable: React.FC<Props> = ({
119
119
target,
120
120
}
121
121
122
- const response = await fetch ( `${ config . routes . api } /reorder` , {
122
+ const response = await fetch ( `${ config . serverURL } ${ config . routes . api } /reorder` , {
123
123
body : JSON . stringify ( jsonBody ) ,
124
+ credentials : 'include' ,
124
125
headers : {
125
126
'Content-Type' : 'application/json' ,
126
127
} ,
You can’t perform that action at this time.
0 commit comments