How to Overcome Cross-domain Issues for Ajax Calls to CAS-protected Resources?

前端 未结 2 1149
广开言路
广开言路 2021-01-12 06:54

What are potential solutions to a redirection problem that occurs when trying to make AJAX calls to a CAS-protected, SSL-encrypted resource located on a server different fro

2条回答
  •  青春惊慌失措
    2021-01-12 07:56

    I never heard about CAS, but in general: Javascript has some restriction called “same origin policy”. A visible ressource is not automatically visible to Javascript, too. Did you try to access the ressource using a reverse proxy to make it available within the same domain? You could also consider to point your domain onto a separate web server and include both servers as reverse proxies (for Tomacat, JKmounts are to prefer) here.

提交回复
热议问题