aimeos / ai-client-jsonapi

Aimeos frontend JSON API
GNU Lesser General Public License v3.0
28 stars 6 forks source link

ssl/https Retrieve meta data #9

Closed exemplari closed 3 years ago

exemplari commented 3 years ago

https://website.com/jsonapi/ -OPTIONS

{ "meta": { "prefix": null, "content-baseurl": "http://website.com" .... , "csrf": { } }

EXPECTED "content-baseurl": "https://website.com" +s

easily patched in the frontend, but unexpected

aimeos commented 3 years ago

If you are using Laravel, check your APP_URL setting in the .env file of your application and add https:// instead of http://

exemplari commented 3 years ago

Thanks. Thats it. I setup with multi-site config for no particular reason. So the issue is actually that it is returning the laravel APP_URL which is totally different from my site url.

APP_URL = http://manager.com

https://website.com/jsonapi/ -OPTIONS "content-baseurl" = "http://manager.com"

Not sure of that is an issue.

aimeos commented 3 years ago

It's a behaviour of the Laravel URL generator