Hi LJ,
If you're not in control of the API server, then you will need to proxy the
requests through your server in order to work around the CORS issue, as you
have done. However, that puts unnecessary strain on your server.

The API server should return the appropriate headers so that the browser
does not block the request. Maybe you should reach out to the other party
to see why they haven't implemented CORS policies correctly. You might also
want to check that the OPTIONS requests (these are sent by the browser to
get the CORS policies before your request) are making it through -
firewalls and proxies can block these unintentionally.

-Luke

On Wed, Aug 23, 2017, 15:03 LJ <[email protected]> wrote:

> Thanks Sander.
> I was able to fix that issue by making my server call the external API (
> not owned by us) instead of having browser making aync call. This issue
> appears only when browser/ front end makes asynch call.
>
>
> On Monday, August 14, 2017 at 8:58:07 AM UTC-4, Sander Elias wrote:
>>
>> Hi LJ,
>>
>> No this is not angular related, and all other frameworks will have the
>> same problem until you fix the CORS issue at your server. postman and
>> resteasy are not the same as a browser.
>>
>> Regards
>> Sander
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Lucas Lacroix
Computer Scientist
Advanced Technology Division, MEDITECH <http://ehr.meditech.com/>
781-774-2293

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to