-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Webservice File upload with cross domain #144
Comments
What browser, version of angular, angular-file-upload are you having this problem with? You gotta post your js and html code here if you need help, or create a jsfiddle. I know people are using CORS with this plugin so it is probably a request header issue or something like that. |
find my env. detail in below.. kindly give solution.. Browser : Firefox 27.0.1 Server : Spring restful service.Ver 3.0.5 ( no authentication) HTML Code Javascript Code scheduler.controller('matrixController', function($scope, $http, $timeout, $upload) {
}); Server filter (java) added like response.addHeader("Access-Control-Allow-Origin", "*"); domain like http://localhost:8080/SchedulerUI/#matrix Webservice like |
Can you copy here the request content/headers from your browser debugger tool for a regular service call versus file upload request? I want to see the difference between the request headers and content between the one that is working and the one that is not working. Also did you try to upload using a simple html form?
|
Yes. it's working. Sorry danial, i disturb you.. i fixed my issue.. Thanks. |
@SADHASIVAM-BE how did you fix the issue? |
I tried with File Upload API in spring 3.0.5 webservice.
I get error like "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. ".
But, all other webservice call(CORS) executing perfectly..
Give solution for this issue.
High priority.
The text was updated successfully, but these errors were encountered: