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: add Origin header to the request #60

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

manchenkoff
Copy link
Owner

Is your PR related to a specific issue/feature? Please describe and mention issues.

This implementation closes #59. Now every request against Laravel API will have both referer and origin headers with the same value provided in the module configuration (or from useRequestUrl if undefined).

Additional context

Also new useSanctumConfig composable was introduced, thanks to the initial idea by @fenilli.

Checklist:

  • Code style and linters are passing
  • Backwards compatibility is maintained
  • Requires documentation to be updated

@manchenkoff manchenkoff added the enhancement New feature or request label Mar 29, 2024
@manchenkoff manchenkoff self-assigned this Mar 29, 2024
@manchenkoff manchenkoff linked an issue Mar 29, 2024 that may be closed by this pull request
@manchenkoff manchenkoff merged commit 44d0687 into main Mar 29, 2024
1 check passed
@manchenkoff manchenkoff deleted the 59-feature-set-origin-header-as-well-as-referer branch March 29, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Set Origin header as well as Referer
1 participant