Access-Control-Allow-Credentials being sent out as numbers not strings
-
Dear development team!
I have found an issue with the plugin. The value for the Access-Control-Allow-Credentials is being sent out as 1 instead of true. This happens because of a bug in src/Helpers/Headers.php. The value
$option->is_allow_credentials()
is being concatenated with the rest of the header which cause php to convert it to 1 or 0. A revised version of this line could be:
if ( $option->is_allow_credentials() ) { header( 'Access-Control-Allow-Credentials: ' . ($option->is_allow_credentials() ? 'true' : 'false') ); }
After updating the code, the plugin started working as intended.
If you use Github for version control, I would be happy to create a pull request. If you need any other information feel free to reach out to me.
Kind regards,
Sebastian Joey Lamprecht
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Access-Control-Allow-Credentials being sent out as numbers not strings’ is closed to new replies.