[ pl4stik @ 11.01.2017. 20:31 ] @
Napravio sam WebAPI i integrisao Identity tako da radi OK i vraca sve sto treba ali na localhost, cim to publikujem na host opet radi ali ne vraca greske samo BadRequest ?!?! Znaci isto je sve.
Evo upita
Request na localhost
Code:

Heeader
Accept: application/json
Content-Type: application/json
Host: localhost:4193
Content-Length: 63
Body
{"Email":"john@smith.com","Password":"d","ConfirmPassword":"d"}

Response sa localhosta
Code:

HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Authorization,Session, Accept, Origin, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Date, X-Api-Version, X-File-Name
Access-Control-Allow-Methods: POST,GET,PUT,PATCH,DELETE,OPTIONS
X-AspNet-Version: 4.0.30319
X-SourceFiles: =?UTF-8?B?RDpcV2ViU2l0ZXMxMlxSVEdQU1RyYWNrZXJcUlRHUFNUcmFja2VyXGFwaVxBY2NvdW50XFJlZ2lzdGVy?=
X-Powered-By: ASP.NET
Date: Wed, 11 Jan 2017 10:47:08 GMT
Content-Length: 142

{"$id":"1","Message":"The request is invalid.","ModelState":{"$id":"2","model.Password":["The Password must be at least 6 characters long."]}}

Request na remote host
Code:

Header
Accept: application/json
Content-Type: application/json
Host: znamen.rs.azhar.arvixe.com
Content-Length: 63
Body
{"Email":"john@smith.com","Password":"d","ConfirmPassword":"d"}

Response sa localhosta
Code:

HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html
Expires: -1
Server: Microsoft-IIS/8.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Content-Type, Authorization,Session, Accept, Origin, X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Date, X-Api-Version, X-File-Name
Access-Control-Allow-Methods: POST,GET,PUT,PATCH,DELETE,OPTIONS
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 11 Jan 2017 11:09:32 GMT
Content-Length: 11

Bad Request

Jel ima neko neki predlog sta bi moglo da bude ?
[ pl4stik @ 11.01.2017. 21:11 ] @
Problem je bi u postavci servera tako da kad sam stiklirao
ASP.NET: Show detailed ASP.NET errors in browser
poceo je da vraca sve kako treba. Cheers