Skip to content

Commit

Permalink
fix CORS error when identifying layers added from Services and URL in…
Browse files Browse the repository at this point in the history
… Add Data tool
  • Loading branch information
sjyangkevin committed Nov 3, 2021
1 parent 96e36a7 commit 8a100df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/Identify.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ class Identify extends Component {
if (url) {
url += "&feature_count=1000000";
//console.log(url);
params.headers["Content-Type"] = "application/text";
// params.headers["Content-Type"] = "application/text";
params.headers["Content-Type"] = "text/plain";
helpers.httpGetTextWithParams(url, params, (result) => {
let tempResult = helpers.tryParseJSON(result);
//console.log(tempResult);
Expand Down

0 comments on commit 8a100df

Please sign in to comment.