Skip to content
Sebastian Schendel edited this page Oct 23, 2021 · 1 revision

FAQ

Frequently Asked Questions

My Authorization Token is not recognized by AppApi.

In some cases the server config does block Authentication Headers by default. Try adding the following line to your .htaccess file:

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

In other cases it helped to add the following line:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

I really want to avoid having to set a header for the apikey.

If you want to include an image from the api using the standard <img src=""> tag, it can be very difficult to include the api key and a token as headers. However, it is possible to include these values as GET parameters. The GET parameter with the apikey is called api_key. A token can be sent as parameter authorization.

Disclaimer: I recommend to use this solution only for this exceptional case. Generally headers are the better and more elegant solution.