-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
c: PlatformFor Matomo platform changes that aren't impacting any of our APIs but improve the core itself.For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.not-in-changelogFor issues or pull requests that should not be included in our release changelog on matomo.org.For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
Description
When sending requests against the API module with a non existing token, the HTTP response should be 403. Not 200.
Expected Behavior
When sending a request with a non existing token, response code should be 403
Current Behavior
Response code is 200
Steps to Reproduce (for Bugs)
curl -ik 'https://matomo.example.com/index.php?module=API&method=API.getMatomoVersion&token_auth=I_DONT_EXIST'
Your Environment
- Matomo Version: 4.4.1
- PHP Version: PHP 7.4.3
- Server Operating System: Ubuntu 20.04.03
Metadata
Metadata
Assignees
Labels
c: PlatformFor Matomo platform changes that aren't impacting any of our APIs but improve the core itself.For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.not-in-changelogFor issues or pull requests that should not be included in our release changelog on matomo.org.For issues or pull requests that should not be included in our release changelog on matomo.org.