Skip to content
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

Host images on another domain ? #54

Open
acwb opened this issue Feb 26, 2022 · 1 comment
Open

Host images on another domain ? #54

acwb opened this issue Feb 26, 2022 · 1 comment

Comments

@acwb
Copy link

acwb commented Feb 26, 2022

Hi there,

I would like to know if this is possible to host images and have another domain as dataProvider ?

on https://DOMAIN1 :

jQuery("#nanogallery2").nanogallery2({
dataProvider: 'https://DOMAIN2/test/gallery/nano_photos_provider2.php',

});

Thanks

@Kris-B
Copy link
Member

Kris-B commented Feb 26, 2022

sure, but to avoid CORS, just set allowOrigins=https://DOMAIN1 in nano_photos_provider2.cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants