You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Embedded markdown fails due to cross site authenticaiton #1422
Exposing this issue requires the import of a markdown behind an authenticated site. The bug was discovered when working on a site locally using the docsify-cli tool in which a markdown page had embedded another markdown from a corporate github enterprise system. It's assumed that once the pages were uploaded to the same github instance the issue would be resolved, but this bug makes it impossible to work on such documentation on a local environment.
Create a markdown for embedding and store it into a github instance, which when served by pages will require authentication.
Create a new github pages project using the docsify embed feature attempt to embed the remote page.
Serve the new github pages project locally using the docsify-cli tool
What is current behaviour
When docsify attempts to fetch the protected resource instead of the markdown the request is redirected to the authentication page, which is returned and embedded into the markdown.
What is the expected behaviour
When embedding a protected markdown that I have already authenticated to I should see the contents of that markdown embedded into the page.
Other relevant information
To solve this issue the XMLHttpRequest used to fetch the contents should set the withCredentials value to true. If the use has then successfully authenticated in the browser to the protected resource this would allow docsify to properly fetch the requested content.
Bug does still occur when all/other plugins are disabled?
Activity
Piotr1215 commentedon Feb 9, 2021
Is the fix planned to be rolled out?
I have encountered the same problem today, trying to render markdown from a repo in Azure DevOps. I, using both alias and remoteMarkdown extension.