This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Bypass X-CSRF-Token validation

Is there a way where we can skip the drupal 10 default xcsrf token validation and alternatively can add the token programatically.

X csrf token on drupal 10

I have been trying to integrate the xcsrf token and when i integrated with my Rest API it is not working as expected

1. method

Core service = \Drupal::service('csrf_token')->get();

2. method

          $url = Url::fromUri('base:/session/token', ['absolute' => TRUE])->toString();

          $response = \Drupal::httpClient()->get($url);

          $user_csrf = $response->getBody()->getContents();

          $csrf_token = trim($user_csrf);

How to upload image using REST resources for File resource on drupal 10

I wanna upload a image in an Api service when i upload them using postman got a below error - need to enable/add multipart/form-data in server accept area
"415 - Unsupported Media Type" - uploaded under form-data

Drupal 7 

Only local images are allowed.

Drupal 10 limits the accept parameters as below

Only local images are allowed.

Juicebox HTML5 Responsive Image Galleries

Dear Drupal fans.

I hope I can post here my problem. I hope it can be resolved.

My problem is:

I have run and I maintain several Drupal 10 sites on two different hostingplatforms.
In my sites I use the modul Juicebox HTML5 Responsive Image Galleries in exactly the same way.

All went perfectly till I upgraded from Drupal 10.1.7 to Drupal 10.2.0.
After this upgrade Juicebox HTML5 Responsive Image Galleries wil not longer work correctly in every browser.

How to use Drupal hook_views_query_alter to change views sorting

 Hi Team,

Modify sorting criteria using views_query_alter

I want to add numbering sort for text column, so I have added lpad formula in order by field. but it escaping the characters "(", "," in the formula

I am using hook view_query_alter, module code is below,
 

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions