CORS https://www.reddit.com/r/synology/comments/17ldnop/setting_up_cors_on_synology_web_station_solved/ # Setting up CORS on Synology Web Station [Solved] This is for future reference and for folks like me who have struggled like me to setup CORS on their Synology NAS. Just a bit of history: - I haven't been able to set it up when using WebDAV. - It works when using the Web Station package with the Apache server backend (not nginx) Do the following: 1. You'll need write access to the nas. Follow this: [https://www.youtube.com/watch?v=1zdo37q20mc&list=PLZdwvOOinjFZh7FOTmtl9ElbcPBSj95qN&index=8](https://www.youtube.com/watch?v=1zdo37q20mc&list=PLZdwvOOinjFZh7FOTmtl9ElbcPBSj95qN&index=8) 2. Add the web station package. Add the apache server package. 3. Open the web station package. Goto "Web Service Portal" ->Edit->Http back-end server = Apache HTTP Server 2.4 (or whatever version). Save. 4. Login to the NAS using the WinSCP app from the youtube video. Goto "/usr/locl/etc/apach24/conf" and edit the file named "httd24.conf" Where all the "LoadModule" text is, add this after: ``` LoadModule headers_module modules/mod_headers.so Header set Access-Control-Allow-Origin "*" ``` 5. Replace the * with the URL of the server (and port) that contains the content you want served. 6. Save the file. 7. Back in DSM, goto the Apache Server package and "stop" it. Hit yes. Then, start it again. Thanks, this helped me. By the way, the directory was missing several characters, the correct location is: /usr/local/etc/apache24/conf/httpd24.conf