Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I POST from a different location? #13

Open
grantbrooksdev opened this issue Oct 11, 2020 · 1 comment
Open

Can I POST from a different location? #13

grantbrooksdev opened this issue Oct 11, 2020 · 1 comment

Comments

@grantbrooksdev
Copy link

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

@rikschennink
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants