S
S
semki0962017-10-10 17:33:52
JavaScript
semki096, 2017-10-10 17:33:52

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

1 answer(s)
A
Alexander, 2017-10-10
@boratsagdiev

Well, if you need to hide the address, API keys, then do it of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question