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

403 forbidden on image show #28

Open
dotsoftwarenl opened this issue May 21, 2024 · 4 comments
Open

403 forbidden on image show #28

dotsoftwarenl opened this issue May 21, 2024 · 4 comments

Comments

@dotsoftwarenl
Copy link

Hi all,

We are currently using this package to generate custom Open Graph images in combination with Inertia.js SSR. The package works on my local environment, but deploying this package to AWS via Laravel Vapor, the generated URL gives me 403 Forbidden.

URL: https://cargopilot.com/open-graph-image?button=Register%20now&subtitle=Book%20air%20cargo%20in%20real%20time%20with%20CargoPilot.&title=CargoPilot&signature=aad87fb268df30f111e35d26acd03d8573f29421189ead5ff6390f769a25521c&.jpg

I have installed open-graph-image via php artisan. Did I miss anything in my setup?

Kind regards.

@Baspa
Copy link
Member

Baspa commented May 21, 2024

I guess this has something to do with the URL being a signed url, when it's invalid that may cause the 403 error but I'm not sure why it could be invalid.

Do you have any idea maybe? @markvaneijk

@markvaneijk
Copy link
Member

Hi @dotsoftwarenl, this should be a configuration issue. My guess: The APP_KEY is different between the environment that generates the SSR response and the environment where the open graph image is generated.

@Baspa
Copy link
Member

Baspa commented May 29, 2024

Any success with figuring out what the issue was? @dotsoftwarenl

@dotsoftwarenl
Copy link
Author

No unfortunately not. I think it's due the fact it is deployed via Laravel Vapor, but I am not sure. I haven't really looked into the issue further.

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

No branches or pull requests

3 participants