I need a way to access the access the following file via one-click.


I have a link for guest access to the subfolder containing the file. It is in the following format:


If trying to access the file directly without first accessing the shared folder, sharepoint will prompt for login credentials.

What I learned so far

    --> HTTP 301 moved permanently
    --> redirects to the following

    --> HTTP 302 found
    --> sets cookie FedAuth
    --> redirects to the following

    --> returns list of files in shared folder
    --> file I want to access is present in the list but
    --> accessing/downloading this file is not friendly/easy on mobile devices

    --> accessing this link directly wont work without FedAuth cookie.

I tried creating a website with a hidden iframe to load the required FedAuth cookie and redirect to the desired file but the iframe load failed due to issues with "Cross origin resources"

Any tips programatically access this file or perhaps even craft a sharepoint link to fetch cookie and redirect into the desired file instead of the shared folder??

I am doing this client side on an iPhone. I do not have any access to the sharepoint permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.