This is what I try to do:
- server A display a page
- javascript in this page call a server A php script with ajax
- server A script check right and other data
- if all is ok, server A redirect to resource on server B
Problem :
I cannot redirect my php answer to ajax, probably due to cross domain protection.
What can I do?
I don't want use file_get_contents
because the resource on server B can be quite heavy so I don't want download it twice (once by serverA, second by client)