Drupal Rest Ui Problems(CORS)

 To solved this we need to install http response header in drupal module and go to configuration>http response header and add a custom header 




add the following to allow CORS headers




 On the Access-Control-Allow-Origin you can add * which mean all ip who access the website is allow to  make cross-origin requests for security reason i allow only a specific url which i type in the header value http://localhost:8000 which mean that accept only a request made from this url

Comments

Popular posts from this blog

Custom Domain to GitHub Pages (Hostinger Edition)

Resizing partition in AWS

Gitlab docker commands