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

Client and Server only works on same host. #363

Open
mitmelon opened this issue Apr 2, 2023 · 0 comments
Open

Client and Server only works on same host. #363

mitmelon opened this issue Apr 2, 2023 · 0 comments

Comments

@mitmelon
Copy link

mitmelon commented Apr 2, 2023

I have the flowjs client on localhost and then hosted the ng-flow server on cloud. Sending the file to the target of the server... Keep getting this error

sha1(): Passing null to parameter #1 ($string) of type string is deprecated"

But when I placed the server and client on same host, it works... but on different host it doesnt work and have added headers such as

header('Content-Type: application/json; charset=UTF-8');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Max-Age: 3600');

For CORS but yet its not working.

On client i have

var flow = new Flow({
  target:'https://my-server-link/upload', 
  query:{upload_token:'my_token'},
chunkSize: 1024*1024,
});

Please what is the workable method to use this?

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

1 participant