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

feat: Adds logic to enable secure URLs in the imgix provider #205

Closed
wants to merge 1 commit into from

Conversation

danny-pearson
Copy link

This enables the Imgix provider to sign the image url using the token provided when 'Secure URLs' is enabled in the source. The token can be passed in as an option to the provider in nuxt.config...

Screenshot 2021-03-27 at 19 07 35

This also lets you use images that are served from a web proxy source without having to sign them manually or rely on another dependency :)

@atinux atinux assigned atinux and unassigned atinux Mar 29, 2021
@pi0
Copy link
Member

pi0 commented Apr 6, 2021

Hi @danny-pearson thanks for the PR. I think we need a mechanism like a runtime config to pass the token. Since options are directly added to runtime/providers which is bundled as a part of client-code (this means someone can easily gain token to sign their URLs)

@pi0 pi0 added the pending label Apr 6, 2021
@danny-pearson
Copy link
Author

@pi0 Aye I'm not ganna lie that completely slipped my mind baha :/

I'll have a look at getting that sorted this weekend :)

@pi0
Copy link
Member

pi0 commented Apr 10, 2021

We may use new provider setup hooks to inject token to nuxt.options.privateRuntimeConfig (it won't work for client-generated URLs)

@pi0 pi0 mentioned this pull request May 17, 2021
@pi0
Copy link
Member

pi0 commented May 17, 2021

I've moved this topic to #276. Thanks for the initiative @danny-pearson 🙏

@pi0 pi0 closed this May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants