---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [safety](../index.md) / isReadOnlySearch

# Function: isReadOnlySearch()

> **isReadOnlySearch**(`method`, `path`): `boolean`

Defined in: [packages/b2c-tooling-sdk/src/safety/read-only-searches.ts:89](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/safety/read-only-searches.ts#L89)

Returns true when a request is a POST to a known read-only search endpoint
(see [READ\_ONLY\_SEARCH\_PATHS](../variables/READ_ONLY_SEARCH_PATHS.md)).

## Parameters

### method

`string`

### path

`string`

## Returns

`boolean`
