Angular 6 Tutorial 13: Configure Proxy for API calls

preview_player
Показать описание
This tutorial shows you how to configure a proxy for API calls in Angular to avoid CORS problem associated with it.

Рекомендации по теме
Комментарии
Автор

I checked out various resources for CORS issue, but only this video got it resolved. Thank you.

akshaychavan
Автор

I bought an Angular course in Udemy and it was really hard for me to understand how Angular works due to the weird way the instructor teaches, he doesn't use Angular CLI, nor he explains what the code do. So I decided to search for a course in Youtube and I have to say that I'm really learning with your course.
Thanks!, your videos are really helpfull

AngelLopez
Автор

Wow. I can't put words to how much that just helped me.

JosephStoll
Автор

thank u so much bhai.. you saved me.. have spent so much time in this.. finally after watching your video it worked ... God Bless u :)

vaibsify
Автор

Hello, is this solution a valid solution for production environment? I got this problem in the preproduction and production environment. Thank you for your help in advance

luiscarlosdiazchamorro
Автор

Hello. Thanks for quick and easy example. If my API calls are authenticated with some http headers then will those get passed with proxy request?

synfyn
Автор

sir, I become a fan. Really nice content you provide us. #unbeatable

shubhamKapoorGlider
Автор

This work great on your localhost but when I ng-build and deploy it to firebase the proxy config files doesn't work, do you have any solution ?

butterfishjakey
Автор

It works! ... Thanks for your support.

antoniorivera
Автор

I've been in trouble with a post method in full address in salesforce, could you help me ?

moralthunder
Автор

I really still need some help with the 504 Gateway Timeout Error I get. In terminal my php server doesn'T show anything while the node tells me

younnessouannani
Автор

Thanks you! It solved my cors problem :D

TheDestuchChannel
Автор

But what if the CORS problem occurs while calling the 3rd party API? i.e. Twitter or Facebook API.

JenilCalcuttawala
Автор

Sir please can you tell me how to run angular build version with proxy.config

chauhanurmi
Автор

what if server doesn't have api folder and have direct path like www.xxxx.xxxx/login( api path ) ?

rajvigajjar
Автор

But it is not working when deploying in tomcat ..only ng nerver it is working .

saurav
Автор

Hi,


Why do we need to proxify the request? Why do we need to do this?

SonalGupta
Автор

how to proceed during construction?
proxy configuration is not supported

hichamasbagui
Автор

can we publish asp.net and angular on one server

iftikharhussain
Автор

Thank you, helped me with this video. It's working in development environment fine, but not working production environment showing error, what can I do???? my production environment and api enviroment is different.

karthibose