filepond-boilerplate-php icon indicating copy to clipboard operation
filepond-boilerplate-php copied to clipboard

Can I POST from a different location?

Open grantbrooksdev opened this issue 3 years ago • 1 comments

Can I configure the server set up through filepond-boilerplate-php to accept POST from locations other than http://192.168.33.10/?

I want to have my index.html file running at http://localhost:8000/ but POST to the server at http://192.168.33.10/api/ and I'm receiving this error

POST http://192.168.33.10/api/
net::ERR_FAILED
failed to load resource

at filepond.js:4850 (https://unpkg.com/[email protected]/dist/filepond.js)

// let's send our data
   xhr.send(data);

Is there something I can change in the PHP config to make this work?

Thank you! Grant

grantbrooksdev avatar Oct 11 '20 16:10 grantbrooksdev

I think you could do so with url rewriting in .htaccess or by moving the files itself to a different folder.

rikschennink avatar Oct 13 '20 08:10 rikschennink