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

[discussion] Get it working with a non-Laravel SPA? #34

Open
shahzeb1 opened this issue Nov 9, 2024 · 1 comment
Open

[discussion] Get it working with a non-Laravel SPA? #34

shahzeb1 opened this issue Nov 9, 2024 · 1 comment

Comments

@shahzeb1
Copy link

shahzeb1 commented Nov 9, 2024

Hi, great package by the way!

Question

Was just wondering if it's possible to get pan working with a single-page application. Meaning, the backed is Laravel but the frontend is a totally different domain and not a Laravel application.

Suggestion?

My guess is that a <script> containing the Pan JS code and maybe a PAN_ENDPOINT environment variable pointing to the Laravel route might be a good developer experience for SPAs?

Again, thanks for the lovely little package.

@rodrigoisabelo
Copy link

Also looking forward PAN being available as an API for SPA applications

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