You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #1218 Live component force post requests (hepisec)
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
Live component force post requests
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| Tickets | Fix#1208
| License | MIT
When your component model may contain sensitive data, you probably don't want your data being transferred via GET requests, because then the data might leak to browser history, server logs etc.
With this PR you can add `forcePost: true` to `#[AsLiveComponent]` and your component will always use POST requests to talk to the backend.
```php
#[AsLiveComponent(forcePost: true)]
class MySensitiveComponent
{
// ...
}
```
Commits
-------
4310601 Live component force post requests
0 commit comments