-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable CORS: Access-Control-Allow-Origin #373
Comments
(It would be nice if you can elaborate why / what you are trying to achieve...) |
Oh for sure. I should have done that form the beginning. Sorry. But we display these books on tromsite.com at https://www.tromsite.com/books/ So the PDFs from drive.tromsite.com need to be displayed on tromsite.com. For this we had enabled CORS in .htaccess for our previous Nextcloud installation, as such:
But we were using Apache. Now we use Nginx. To translate the above I tried:
In /ect/nginx/conf.d/URL.tf.d (where URL is the domain where Nextcloud is installed). Restarted Nginx. And it works. But there is no partial loading of content, so one has to wait until a PDF is fully downlaoded before seeing it at tromsite.com/books. You know what I mean? |
This should address #580 too. |
How can I properly enable CORS for this? I come from Apache and .htaccess. In Nginx should I edit the /ect/nginx/conf.d/URL.tf.d (where URL is the domain where Nextcloud is installed). If so, what is the proper code to do that in Nginx? Cheers!
The text was updated successfully, but these errors were encountered: