Click here to Skip to main content
15,887,436 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: Open template word doc and replace values Pin
CHill6014-Mar-17 5:43
mveCHill6014-Mar-17 5:43 
AnswerRe: Open template word doc and replace values Pin
Richard Deeming14-Mar-17 6:54
mveRichard Deeming14-Mar-17 6:54 
GeneralRe: Open template word doc and replace values Pin
byka14-Mar-17 8:09
byka14-Mar-17 8:09 
GeneralRe: Open template word doc and replace values Pin
Richard Deeming14-Mar-17 11:06
mveRichard Deeming14-Mar-17 11:06 
QuestionDotnet Core Reference Issue Pin
S_A_S9-Mar-17 0:11
S_A_S9-Mar-17 0:11 
AnswerRe: Dotnet Core Reference Issue Pin
Afzaal Ahmad Zeeshan14-Mar-17 11:53
professionalAfzaal Ahmad Zeeshan14-Mar-17 11:53 
QuestionApi post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan8-Mar-17 18:36
mrkeivan8-Mar-17 18:36 
AnswerRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
F-ES Sitecore8-Mar-17 23:08
professionalF-ES Sitecore8-Mar-17 23:08 
When I made a call to that api this is the response I got

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Vary: Accept-Encoding
Server: Microsoft-IIS/8.5
Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Powered-By-Plesk: PleskWin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, PUT, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: content-Type, accept, origin, X-Requested-With, Authorization, name
Access-Control-Allow-Credentials: true
Date: Thu, 09 Mar 2017 10:02:31 GMT
Content-Length: 135


Note that there are multiple "Access-Control-Allow-Origin" headers. The first thing I would do is look to why that is happening and get it down to one as the browser may well reject the response as invalid (if I use IE I get an error in the console explicitly stating there are duplicate headers). This is probably happening as you are configuring it in multiple places.
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 0:05
mrkeivan9-Mar-17 0:05 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
F-ES Sitecore9-Mar-17 0:18
professionalF-ES Sitecore9-Mar-17 0:18 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 17:56
mrkeivan9-Mar-17 17:56 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
F-ES Sitecore9-Mar-17 22:51
professionalF-ES Sitecore9-Mar-17 22:51 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 23:35
mrkeivan9-Mar-17 23:35 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 18:54
mrkeivan9-Mar-17 18:54 
SuggestionRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
Richard Deeming9-Mar-17 1:18
mveRichard Deeming9-Mar-17 1:18 
GeneralRe: Api post call works on postman but in mobile app or ajax call it doesn't Pin
mrkeivan9-Mar-17 17:57
mrkeivan9-Mar-17 17:57 
QuestionASP.NET C# -STRING PROCESSING Pin
batman568-Mar-17 18:04
batman568-Mar-17 18:04 
SuggestionRe: ASP.NET C# -STRING PROCESSING Pin
Richard MacCutchan8-Mar-17 21:17
mveRichard MacCutchan8-Mar-17 21:17 
AnswerRe: ASP.NET C# -STRING PROCESSING Pin
Richard Deeming9-Mar-17 1:15
mveRichard Deeming9-Mar-17 1:15 
QuestionError Inserting data - into the database. Pin
samflex6-Mar-17 3:28
samflex6-Mar-17 3:28 
AnswerRe: Error Inserting data - into the database. Pin
Richard MacCutchan6-Mar-17 5:36
mveRichard MacCutchan6-Mar-17 5:36 
GeneralRe: Error Inserting data - into the database. Pin
samflex6-Mar-17 6:19
samflex6-Mar-17 6:19 
GeneralRe: Error Inserting data - into the database. Pin
Richard MacCutchan6-Mar-17 6:25
mveRichard MacCutchan6-Mar-17 6:25 
GeneralRe: Error Inserting data - into the database. Pin
samflex6-Mar-17 7:01
samflex6-Mar-17 7:01 
AnswerRe: Error Inserting data - into the database. Pin
F-ES Sitecore7-Mar-17 0:52
professionalF-ES Sitecore7-Mar-17 0:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.