Home

Linking to CSS Files in Assests Library from Intranet

%3CLINGO-SUB%20id%3D%22lingo-sub-267146%22%20slang%3D%22en-US%22%3ELinking%20to%20CSS%20Files%20in%20Assests%20Library%20from%20Intranet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-267146%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20there!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20import%20a%20CSS%20file%20from%20an%20assets%20library%20we%20have%20in%20SharePoint%20to%20a%20web%20page%20in%20our%20Intranet%20(not%20inside%20SharePoint)%2C%20and%20usually%20all%20links%20work%20great.%20However%2C%20in%20this%20case%2C%20the%20CSS%20file%20does%20not%20seem%20to%20be%20sending%20the%20correct%20headers%20or%20something%20to%20identify%20itself%20because%20it%20mangles%20the%20page.%20However%2C%20when%20I%20link%20or%20import%20the%20file%20from%20bitbucket%20(raw)%20or%20github%20(raw)%2C%20I%20have%20no%20issue.%20Nor%20do%20I%20have%20a%20problem%20when%20I%20enter%20the%20CSS%20directly%20on%20the%20page.%20Any%20thoughts%3F%20Thanks%20in%20advance.%20This%20one%20is%20really%20stumping%20me!%20(I%20tried%20githack%20and%20got%20a%20developer%20cdn%20link%2C%20and%20that%20also%20works%3B%20just%20not%20a%20link%20from%20SP).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E~CR%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-267146%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-711723%22%20slang%3D%22en-US%22%3ERe%3A%20Linking%20to%20CSS%20Files%20in%20Assests%20Library%20from%20Intranet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-711723%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F194188%22%20target%3D%22_blank%22%3E%40Charisma%20Riley%3C%2FA%3E%26nbsp%3B%20I%20realize%20this%20is%20an%20old%20post%20that%20may%20not%20need%20an%20answer%20at%20this%20point%2C%20but%20typically%20items%20stored%20in%20SharePoint%20are%20secured%20by%20user%20permissions.%20I%20am%20wondering%20if%20you%20asset%20library%20is%20secured%20and%20you%20haven't%20configured%20your%20Intranet%20site%20to%20be%20able%20to%20access%20it%2Fhave%20permissions%20to%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20setup%20anonymous%20access%20in%20SharePoint%20and%20you%20can%20access%20SharePoint%20resources%20from%20other%20web%20applications%2C%20but%20it%20isn't%20as%20straightforward%20as%20one%20would%20hope.%20However%2C%20there%20are%20options%20out%20there%20if%20this%20is%20still%20something%20you%20are%20trying%20to%20accomplish.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi, there!

 

I am trying to import a CSS file from an assets library we have in SharePoint to a web page in our Intranet (not inside SharePoint), and usually all links work great. However, in this case, the CSS file does not seem to be sending the correct headers or something to identify itself because it mangles the page. However, when I link or import the file from bitbucket (raw) or github (raw), I have no issue. Nor do I have a problem when I enter the CSS directly on the page. Any thoughts? Thanks in advance. This one is really stumping me! (I tried githack and got a developer cdn link, and that also works; just not a link from SP).

 

~CR

1 Reply
Highlighted

@Charisma Riley  I realize this is an old post that may not need an answer at this point, but typically items stored in SharePoint are secured by user permissions. I am wondering if you asset library is secured and you haven't configured your Intranet site to be able to access it/have permissions to it.

 

You can setup anonymous access in SharePoint and you can access SharePoint resources from other web applications, but it isn't as straightforward as one would hope. However, there are options out there if this is still something you are trying to accomplish.

 

 

Related Conversations
SharePoint Migration Tool Troubles
MichaelWill17 in SharePoint on
1 Replies
Can't use OneDrive on Microsoft Teams Free
HotCakeX in Microsoft Teams on
0 Replies
Transferring Shared Files to Microsoft Teams
jackschnettler in Microsoft Teams on
2 Replies
File
FedeZsuper in Microsoft Teams on
3 Replies