-
Notifications
You must be signed in to change notification settings - Fork 34
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
Invalid security hash issue #82
Comments
@luminous8 Are you regenerating the security hash for the switched parameter order? Unfortunately, order does matter - so if you change it, the hash will need to be regenerated. Ideally, the hash wouldn't be dependent on this; however, we're following the Imgix API in order to provide cross-compatibility: |
Yes I'm regenerating it! |
I'm still investigating and it's still pretty weird: This example works But this one doesn't My secret key contains some specials characters like (+@)./[;]), could it be related to that? |
Any clue? Thanks! |
I haven't had a huge amount of time to dig into this yet, but I wasn't able to reproduce it locally with Serverless Offline. My suspicion is for some reason the query parameter order is getting mangled by API Gateway prior to sending. I'll do a little more experimentation on API Gateway before making changes though. |
Thanks! Let me know if I can help. |
Describe the bug
A clear and concise description of what the bug is.
Thanks a lot for this great solution, that's exactly what i was looking for (and it's pretty easy to setup).
But I'm struggling with the security hash, it doesn't work with all the params (I got the 403 error, Invalid security hash).
For example my code works with theses params:
'?h=400&w=700' and the security hash but not with theses ones '?w=400&h=700'. Doesn't really make sense, right?
To Reproduce
Here's what my code looks like:
Versions
Operating System: Mac os
Serverless Sharp: Last one (i've installed it last night)
Thanks!
The text was updated successfully, but these errors were encountered: