Just want to seek assistance. How to bypass Confluence login when redirecting to Confluence page from other website? I need to redirect to confluence page from my website website, but it keeps returning restricted page.
Thanks for this info. But the âanonymous accessâ is not an option. This is to prevent unauthorized users to view the page.
What I am trying to do is to inject the authorization credentials to Confluence using JQuery, I was able to get 200 response, but I cannot redirect to the Confluence page. I am getting âCORS policyâ error. âNo âAccess-Control-Allow-Originâ header is present on the requested resource.â.
The problem is being caused by your browserâs CORS (cross-origin request sharing) policy, which is a security feature implemented in most modern browsers. By default, JavaScript in the browser is not permitted to make AJAX/XHR calls to URLs to a different origin than the URL from which the JavaScript itself was loaded (this is called the same-origin policy Same-origin policy - Web security | MDN).
The CORS standard includes a mechanism for servers to permit CORS requests, but modifying this is not a feature of Jira or Confluence Cloud. The alternative way to solve this problem is to build a server-side endpoint that can proxy the request from the browser to Jira.
I feel that it is important to point out that by embedding the credentials to login to Confluence using jQuery, any user of that page will be able to view and copy the credentials, which perhaps negates the advantage of having the pages restricted.