0

Background: I had http authentication enabled by htaccess on my test site. I had created REST resource using Drupal 8 core REST web services modules and views. When i used authentication as basic_auth than on Test site got access forbidden 404 for each page request. Uninstall basic_authentication make it work but i want basic_authentication should work for my test site. What would be the better alternative for this?

Thanks

1 Answer 1

0

You can send in the user and password parameters with your API call.

user:password@http://site-url.tld

this way you can still communicate with the app whilst keeping it behind basic auth

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.