Redirects to API’s

Asked

Viewed 26 times

0

Good afternoon devs!

My problem is this: I have a desktop application in Delphi that uses some services in a web application. I had to migrate the web application to another host and change the domain too, so I created a 301 redirect by htaccess on the old host pointing to the new domain on the new host. Everything works by accessing the interface via browser, however, a 403 error is returned when the client application in Delphi tries to consume the services.

Note: The Delphi application continues to direct requests to the old domain.

Note2: Old server runs with Apache and new server runs with Nginx.

Is there any way around this?

1 answer

0

Apparently Delphi isn’t following the redirect. It simply takes a snapshot of the page you passed and does not continue with the redirect. The same thing must happen when there is some ajax on the page, and Delphi does not expect ajax.

Unfortunately I can not help more, I hope to have cleared.

  • That’s probably the problem. I read some materials that guide to create a reverse proxy on the old server (apache), but I could not make it work. The problem is that this unviable update all my customers using the tool in Delphi.

  • What if you put a frame on the page? , or if you put a redirect on the onload in html, does it work? , if you don’t want to use a server, you can host the page on github, as it only contains html and javascript.. follow tutorial https://woliveiras.com.br/posts/jamstack-criando-e-hospedando-seu-site-de-gra%C3%A7a-no-github-pages/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.