I have tried call API From FE with API is: http://localhost/search?userName=...
get(endpoint: string, responseType = 'json', params: HttpParams = null): Observable<any> {
let url = this.getHost() + endpoint;
if (params?.toString()) {
endpoint += `?${params.toString()}`;
}
const headers = this.getAuthHeaders(endpoint);
const options = {
headers: headers,
responseType: responseType as 'json',
params,
};
}
And it also returns
You do not have the permission to perform this action. Error 1004 Provided nonce does not match computed nonce
When I try to send userName that has white space or a special character like ` in API
And nonce in headers must match with rest framework simplify
This problem will only occur when the parameter contains spaces or strange characters like `