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

delete CORS issue #63

Open
lybo opened this issue Aug 28, 2016 · 0 comments
Open

delete CORS issue #63

lybo opened this issue Aug 28, 2016 · 0 comments

Comments

@lybo
Copy link

lybo commented Aug 28, 2016

I run a different server for the UI and I use deployd as a API. I don't have any issue apart from the delete end-point which complains about CORS.
ui server port: 3000
deployd server port: 2403

            dpd.fileupload.del(id, function(result, err) {
                if (err) alert(err);
                console.log(result, err);
            });

XMLHttpRequest cannot load http://localhost:2403/fileupload/5a008e9b770a6b62. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

Any idea how to resolve it?

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