-3

I want to connect from app A with address "http://172.20.30.15:8180" to app 2 with address "http://172.20.40.15:8080" that have security OAuth2 and my browser is Firefox. I use ajax for connecting with head "Bearer token". Pls help me how can display home app B From app A?

When I use pushstate I catch error, "

ecurityError: The operation is insecure"

1 Answers1

0

You can use history.pushState on ajax success.

Eg:

$.ajax({
    url: "YourURL",
    type: "POST",
    data: "DataIfYouPAss",
    success: function(data) {
        window.history.pushState("YourDetails", "YourTitle", "http://172.20.30.15:8180");
    }
});
4b0
  • 21,981
  • 30
  • 95
  • 142