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

52
5
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.

Similar threads

  • Question
Well I essentially gave up on the reverse proxy. While everything works, using cloudflare DNS with proxy...
Replies
15
Views
1,406
My Synology version is DSM 6.2.3, and My home network does not have public IPv4, only public IPv6. I use...
Replies
0
Views
614
I just went into my nas, support services, turned on remote access which generated a support...
Replies
1
Views
632
I called the provider and he told me that I don't have a nat, just for business(( :cry:
Replies
2
Views
995
Hi everybody. I access my synology ( DS 223J) remotely through different devices, pc and mac included...
Replies
0
Views
791
  • Question
To my knowledge the PAN FW is configured to allow the active and passive ip + cluster ip through to...
Replies
4
Views
824

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Back
Top