Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public async Task<IActionResult> Scorm(int id)
/// <param name="filePath">filePath.</param>
/// <returns>bool.</returns>
//// [ResponseCache(VaryByQueryKeys = new[] { "*" }, Duration = 0, NoStore = true)] // disable caching
//// Removed Request.Headers["Referer"] Referer URL checking based on issue reported in TD-4283
[AllowAnonymous]
[Route("ScormContent/{*filePath}")]
public async Task<IActionResult> ScormContent(string filePath)
Expand All @@ -79,12 +80,6 @@ public async Task<IActionResult> ScormContent(string filePath)

try
{
var referringUrl = this.Request.Headers["Referer"].ToString();
if (string.IsNullOrEmpty(referringUrl))
{
throw new UnauthorizedAccessException("Referer URL is required.");
}

if (!this.User.Identity.IsAuthenticated)
{
throw new UnauthorizedAccessException("User is not authenticated.");
Expand Down