pnp / custom-learning-office-365

Microsoft Learning Pathways end user learning solution for Microsoft 365 customers.
MIT License
228 stars 209 forks source link

[QUESTION] Question about articles on learn.microsoft.com #752

Closed asechko closed 10 months ago

asechko commented 10 months ago

Hello,

I apologize for the offtopic, but honestly can't find another place to post it (maybe someone could guide me as well)

For a long time, we have been using Microsoft Learning Pathways for internal training. Since we are doing it inside our SharePoint environment, but without using the solution that is described here on GitHub: we put the pages from the MLP into iframe for them to be shown. So we are not using this custom web part.

However, lately we are facing the following issue:

It looks like learn.microsoft.com pages cannot be put in iframe because “x-frame-options” in the header is set to ‘sameorigin’

MicrosoftTeams-image

So, the questions are the following (hoping that somebody still could help me):

Thanks in advance.

dcashpeterson commented 10 months ago

@asechko I am not sure I am following what you are trying to do. Are you using the Learning Pathways web part to embed content on a page or are you using the embed web part to embed a Learn.microsoft.com page. I just checked and the Day in the Life content you referenced works fine and is an asset called Start Your Digital Day in the Modern Work Category. Home > Modern workplace > Day in your digital life with Office 365. There are issues with learn.microsoft.com and docs.microsoft.com where you can't bring that content in via an IFrame. There isn't a work around for that unfortunately.

asechko commented 10 months ago

@asechko I am not sure I am following what you are trying to do. Are you using the Learning Pathways web part to embed content on a page or are you using the embed web part to embed a Learn.microsoft.com page. I just checked and the Day in the Life content you referenced works fine and is an asset called Start Your Digital Day in the Modern Work Category. Home > Modern workplace > Day in your digital life with Office 365. There are issues with learn.microsoft.com and docs.microsoft.com where you can't bring that content in via an IFrame. There isn't a work around for that unfortunately.

exactly @dcashpeterson, we are using embed web part to embed a Learn.microsoft.com page, so basically we are not using the web part that is a part of this solution.

so do you know why content from learn.microsoft.com and docs.microsoft.com can't be embedded anymore, as it was previously possible?

and will all content be moved there from support.office.com as well?

dcashpeterson commented 10 months ago

@asechko, This is not an issue that is specific to Learning Pathways. Unfortunately, there is content in learn, docs, and support that has the header that specifically prohibits iframing. There is no work around for that. The Microsoft provided assets in Learning Pathways work within the Learning Pathways webpart so if you wanted to create a custom playlist with a single asset in it you could then use the Learning Pathways webpart and show that playlist.

Also, we don't have any visibility into if content from support.office.com will be moved.

Hope that helps.

github-actions[bot] commented 9 months ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.