file upload giving error

file upload giving error

by Ravi Kumar Chintalapudi -
Number of replies: 4

Hello,

I am using the moodle version Moodle 3.10+ (Build: 20201113)

I have a strange issue. I get this error in console when trying to upload a file.

Uncaught DOMException: Blocked a frame with origin "https://aulavirtual.fundacioncadel.cl" from accessing a cross-origin frame.

However, there are no cross-origin urls anywhwere. All the urls shown in the console belong to the same domain.

I also added this in the vhost configuration and restarted apache. 

Header set Access-Control-Allow-Origin "*"

But still issue is not resolved.

Please let me know how to fix the issue.

Thanks and Regards 

Ravi Kumar

Attachment Screenshot_1.jpg
Average of ratings: -
In reply to Ravi Kumar Chintalapudi

Re: file upload giving error

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

A search of these forums would have returned this thread.

This reply suggests upgrading Apache fixes the issue.

Can you tell us which version of Apache you have? It will help others with this problem to compare versions.

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: file upload giving error

by Ravi Kumar Chintalapudi -
hello Leon,
Thank you for the reply,
I am running this Moodle 3.10+ (Build: 20201113) of a CWP7 server with apache version 2.4.39. I will upgrade apache and check if it fixes the issue.
Thank you.
In reply to Ravi Kumar Chintalapudi

Re: file upload giving error

by Ravi Kumar Chintalapudi -
Hello,
Upgrading the apache version to 2.4.46 resolved the issue.
Thank you.
Average of ratings: Useful (2)
In reply to Ravi Kumar Chintalapudi

Re: file upload giving error

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

That's great news, thanks for confirming how you fixed the problem. It was exactly the same versions as the other thread (upgrade Apache from 2.4.39 to 2.4.46), a very strange problem!