Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Iggrid windows authentication chrome/firefox issues
posted

Hi,

I am able to get the built in restSettings for create,update,delete to work in IE but I encounter authorization problem in Chrome&Firefox.

I was able to get the datasource manually with angular and pass in withCredentials: true below.

is there a similar function i can use in IGniteui-angular2 iggrid?


Project:

.net core/ Angular 4/ Igniteui-angular2/ ignite ui 17.1

Angular:

getErrorTypes(): Observable<IErrorType[]> {

 return this._http.get(this._errorTypesUrl, { withCredentials: true })

Error Message:

OPTIONS http://localhost/api/v1/CREERRORTYPES/1 401 (Unauthorized)

errortype:1 XMLHttpRequest cannot load http://localhost/api/v1/CREERRORTYPES/1. 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:35636' is therefore not allowed access. The response had HTTP status code 401.

Parents Reply Children
No Data