Project

General

Profile

Task #1606

Convert proxy call to use POST

Added by Luke Murphey over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Dashboard: Input Editor
Target version:
Start date:
11/19/2016
Due date:
% Done:

100%


History

#1 Updated by Luke Murphey over 7 years ago

The iframe / form is working. However, the controller is redirecting from the POST and thus converting the request to a GET.

  • Removing the GET option still redirects; it just makes the endpoint return 405
  • Replacing the controller code with just a string doesn't change the behavior
  • Using a form to ensure that the argument is provided as a GET param doesn't change the behavior

#2 Updated by Luke Murphey over 7 years ago

It looks like authentication is failing.

#3 Updated by Luke Murphey over 7 years ago

Might need to do something to pass the CSRF token in or disable it for this endpoint: https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Webconf

#4 Updated by Luke Murphey over 7 years ago

I need to set the X-Splunk-Form-Key header. This can be obtained by calling Splunk.util.getFormKey().

#5 Updated by Luke Murphey over 7 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF