0

I'm tring this tutorial but taking this error. I'm using Wamp.

Error: Expecting a token named "token" but instead got: "
\nDeprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
\n
\nWarning: Cannot modify header information - headers already sent in Unknown on line 0
\n{\"token\":\"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjMzLCJpc3MiOiJodHRwOlwvXC9oZXJrb2JpLmRldlwvYXBpXC9hdXRoZW50aWNhdGUiLCJpYXQiOiIxNDM3OTUwNjgxIiwiZXhwIjoiMTQzNzk1NDI4MSIsIm5iZiI6IjE0Mzc5NTA2ODEiLCJqdGkiOiIwN2NkY2QwY2I3YzJiNjhlZWJjNWIzNjcyYjhmZjJlNiJ9.SmijTzkRUnzovUP5m4W5yjEcPV5mRxb_3dvw21TUap8\"}"

Changed always_populate_raw_post_data to -1 but same..

What the reason can be? Thanks..

sakarya
  • 383
  • 4
  • 16

1 Answers1

0

Changed public->.htaccess file.

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On


RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
sakarya
  • 383
  • 4
  • 16