隐藏获取请求键

我正在使用新的OMDB api,并希望在客户端保持提取请求(包括密钥)不可见。

下面是用户打开开发工具时的问题示例: feelsbad

我在React中完成所有的调用,如下所示:

import OmdbKey from './OmdbKey'; populate(keystrokes) { let query = "http://www.omdbapi.com/?s="; fetch(query + keystrokes + '&apikey=' + OmdbKey ) .then((response) => { response.json().then((json) => { this.setState({ results: json.Search }); }); }); } 

有没有办法做到这一点,所以我可以隐藏在GET请求中的密钥? 如果不是,我该怎么办?

谢谢