See the generated Content-Type on POST header.
If I use Content-Type: plain/text I see only pure POST.
I'm using something like this:

>                 $http.post('http://mysite.com',
>                         angular.toJson( {    myJson: myData} ),
>                         {   timeout: 8000,
>                             headers: { 'Content-Type': 'text/plain' }
>                         }
>
>
Em terça-feira, 4 de agosto de 2015 05:09:40 UTC-3, Emmanuel DEMEY escreveu:
>
> I think it is not related to AngularJS. Your browser should be in charge 
> of this OPTIONS request. Everything is related to CORS. 
>
> The question is why $.ajax do not send OPTIONS request ? :s
>
> Manu
> @EmmanuelDemey
>
> 2015-08-03 13:13 GMT+02:00 sneha teke <[email protected] <javascript:>>:
>
>>
>> Hi,
>>
>> I do not want option calls before post calls in angular js. Please tell 
>> me way to avoid option calls in angular js?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "AngularJS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Emmanuel DEMEY
> Consultant
> Zenika
> +33 (0)6 47 47 42 02
> [email protected] <javascript:>
>
>    - fr.linkedin.com/in/emmanueldemey/
>
>
> Twitter : @EmmanuelDemey
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to