Hi-
We've built an internal Data Portal using the Hub framework. I'm trying to provide the ability to search our portal for documents as well as all of the spatial data. We have loads of documents in our Sharepoint site that I'd like to be able to provide to our staff as links when they search our internal portal. For example, when our staff searches the internal portal for "Prairie Dogs", I'd like them to not only get the spatial data that is titled and/or tagged "Prairie Dogs", but also documents on Sharepoint related to Prairie Dogs. I've gone ahead and created AGOL items for these documents that are links to PDFs or Word Docs in Sharepoint, and these work just fine. But when I share the AGOL item with the content group for our internal data portal, I get this error message (cityofboulder.sharepoint.com refused to connect.):
Any ideas?
Thanks in advance!
Jennifer
Solved! Go to Solution.
Hi @JenniferSherry. Thanks for leaving a question!
I have two responses:
In order for the document link to embed in this page, the referenced URL (your Sharepoint site) must be configured to be loaded in other places on the web.
When I try to create a document link to your Sharepoint site, I have the same UI error on my Hub site. Under the hood of the browser, I see this error message:
Access to XMLHttpRequest at 'https://cityofboulder.sharepoint.com/' from origin 'SITE' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
It looks like through a change of your Sharepoint site settings, you can get this to work. I think you'd need to work with the person who manages your Sharepoint to allow the URL of your OSMP Hub site using cross origin resource sharing (CORS). This page, which references the specific error, might be a starting point for you.
If you are satisfied with your document link simply redirecting to your Sharepoint site, make the following change in your Hub settings:
Go to edit your site. In the Settings, under Interactions, toggle-off Embedded Links. With this setting off, your document links should open your Sharepoint URLs directly, and not within your Hub site.
Hi @JenniferSherry. Thanks for leaving a question!
I have two responses:
In order for the document link to embed in this page, the referenced URL (your Sharepoint site) must be configured to be loaded in other places on the web.
When I try to create a document link to your Sharepoint site, I have the same UI error on my Hub site. Under the hood of the browser, I see this error message:
Access to XMLHttpRequest at 'https://cityofboulder.sharepoint.com/' from origin 'SITE' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
It looks like through a change of your Sharepoint site settings, you can get this to work. I think you'd need to work with the person who manages your Sharepoint to allow the URL of your OSMP Hub site using cross origin resource sharing (CORS). This page, which references the specific error, might be a starting point for you.
If you are satisfied with your document link simply redirecting to your Sharepoint site, make the following change in your Hub settings:
Go to edit your site. In the Settings, under Interactions, toggle-off Embedded Links. With this setting off, your document links should open your Sharepoint URLs directly, and not within your Hub site.
Justin, I was looking for the solution in the second option, so thanks for your quick response! Changing that setting for "Enbedded Links" did the trick.
Jennifer