Make the request to /wines over https instead of http.

--
Abhay Rana
http://about.me/n3m0


On Sun, Aug 11, 2013 at 8:07 PM, Johnathan Mercer <[email protected]>wrote:

> Hi Jose,
> YES, that worked! It returns the data but I still get a console warning:
>
> The page at [my url] displayed insecure content from
> http://69.173.71.80:3000/wines.
>
> Do you know how to avoid this warning?
>
>
>
> On Sunday, August 11, 2013 10:28:47 AM UTC-4, Johnathan Mercer wrote:
>>
>> I'll try it out thanks!!
>>
>> On Sunday, August 11, 2013 10:22:00 AM UTC-4, Jose Luis Rivas wrote:
>>>
>>> On Sun Aug 11 07:14:58 2013, Johnathan Mercer wrote:
>>> > Hi Jose,
>>> > Thanks for the fast response! Can you elaborate? I don't quite
>>> > understand..
>>> > John
>>> >
>>> > On Sunday, August 11, 2013 9:37:54 AM UTC-4, Jose Luis Rivas wrote:
>>> >
>>> >     I think you are missing the OPTIONS. That's the method sent on the
>>> >     pre-flight by the browser.
>>> >
>>>
>>> res.header('Access-Control-**Allow-Methods', 'GET,PUT,POST,DELETE,
>>> OPTIONS');
>>>
>>> When the browser makes an AJAX request it sends a 'pre-flight' with the
>>> OPTIONS method. The OPTIONS method is used by the browser to explore if
>>> the method trying to use is allowed by the server and avoid sending a
>>> payload that will get rejected. So the pre-flight is some kind of
>>> soft-rejection.
>>>
>>> --
>>> Jose Luis Rivas
>>> http://joseluisrivas.net/
>>>
>>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

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

Reply via email to