Embed (iframe) Synology Drive on own site - maybe CORS problem

Currently reading
Embed (iframe) Synology Drive on own site - maybe CORS problem

51
4
NAS
DS218+
Operating system
  1. Windows
Mobile operating system
  1. Android
I have problem with iframe - I want put Synology Drive WEB Site on my site in iframe. I turned off this two options:
1696845455902.png

and on my website I can open Synology Drive but when I trying loging I have two errors:
Code:
dsm.login-standalone.bundle.js?v=1683699872:2
Blocked autofocusing on a <input> element in a cross-origin subframe.
and
Code:
Uncaught (in promise)

I tried to add header to server.syno-app-portal.SynologyDrive.conf:
Code:
add_header Access-Control-Allow-Origin "https://example.com";

but it`s not working. (Example Domain is my site)

From another thread I have response:
This is the header for the server response, if the expected origin in https://example.com

What you need to set is the request header Origin with the value https://.example.com

Though, I have no idea whether it's the solution to your problem. If not, someone else will need to pitch in. The tutorial is about the mechanics of how to add custom rules, but not about how rules need to look like, as it is highly application specific.

But I don't really understand where to add this Origin
 
Small update from SynologySupport Center - my ticket is "I can`t embedded MailPlus WEB with iframe" (Mail Plus WEB has the same problem). This is the answer.
"Unfortunately, we cannot help you any further with your request as this is not supported by Synology. What you could do, however, is to have a look in the Synology forum to see if someone has already dealt with your issue."

This wasn't the answer I expected.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Old thread notice: There have been no replies in this thread for quite some time. The last reply was on .
The content in this thread may no longer be relevant. It might be better to open a new thread instead.

Similar threads

Maybe if you can explain the bit you're confused about? I jumped to that location in the video and it...
Replies
1
Views
414
Yep. Am on 900/900. Fortunately Fiberhop is small enough to talk turkey with, any of the big isps are...
Replies
7
Views
1,222
Howdy! After a long wait with internet companies, we've finally got our new line in to the new office. I...
Replies
24
Views
1,889
  • Question
Good point. I assumed it was 24 due to lack of details, but again, good point.
Replies
3
Views
1,053
setup up a local DNS server and point DOMAIN1.com, DOMAIN2.com and DOMAIN3.com to your Synology IP. I am...
Replies
1
Views
1,212

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top