Answer the question
In order to leave comments, you need to log in
How to build an architecture of a single page application in JS using cross-domain requests?
There is a one-pager. The task is to take data from the api-service. What data to load - the user decides. He has a form, he selects the desired address from the list, submits the form and sees the required information. All this is in js, because Ajax is needed.
Question - maybe it's worth making a gasket, sending a request to your php handler and it will already send a request to the api-service? I thought that this way I can close the information about the api-service, I can send tokens, etc. That is a kind of padding.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question