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

🩹 Fix token authorization #112

Merged
merged 1 commit into from
Jul 28, 2024
Merged

Conversation

bonzai
Copy link
Contributor

@bonzai bonzai commented Jul 28, 2024

Currently, if we define the following HTTP route:

Route::middleware('api')->group(function () {
    Route::post('/test', ExampleController::class);
});

we won't be able to access it if we send a POST request to:

http://localhost:8080/test?token=mytoken

because internally, Symfony clears the query parameters for non GET requests.

@Log1x Log1x merged commit 6bab833 into laracord:main Jul 28, 2024
1 check passed
@bonzai bonzai deleted the fix-token-authorization branch July 29, 2024 00:18
@Log1x
Copy link
Member

Log1x commented Jul 29, 2024

appreciate it!

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

Successfully merging this pull request may close these issues.

2 participants