Body: <p>I am attempting to write a simple script that updates entries in <code>Gravity Forms</code> via their REST API.  <code>GET</code> requests to the API work successfully, but <code>POST</code>s and <code>PUT</code>s (I have not tried <code>DELETE</code>) do not appear to be routed correctly.</p>
  
  <p>Instead, I am getting what appears to be a <code>CiviCRM</code> error template, but not wrapped by the rest of the site HTML. (See below)</p>
  
  <p>Disabling <code>CiviCRM</code> in <code>wordpress</code> gets my script working as designed.</p>
  
  <p>I am running <code>CiviCRM</code> version 4.7 and <code>Gravity Forms</code> version 2.1.0.1</p>
  
  <pre><code>&lt;div id="crm-container" class="crm-container" lang="en" xml:lang="en"&gt;
      &lt;style type="text/css" media="screen"&gt;
      @import url(/wp-content/plugins/civicrm/civicrm/css/civicrm.css);
      @import url(/wp-content/plugins/civicrm/civicrm/bower_components/font-awesome/css/font-awesome.min.css);
    &lt;/style&gt;
      &lt;div class="messages status no-popup"&gt;
          &lt;i class="crm-i fa-exclamation-triangle crm-i-red"&gt;&lt;/i&gt;
          &lt;span class="status-fatal"&gt;Sorry but we are not able to provide this at the moment.&lt;/span&gt;
          &lt;div class="crm-section crm-error-message"&gt;We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Error type: Could not find a valid session key.&lt;/div&gt;
          &lt;p&gt;
              &lt;a href="https://www.lofcenter.org/" title="Main Menu"&gt;Return to home page.&lt;/a&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;script language="JavaScript"&gt;
  function toggle( element ) {
      var parent = element.parentNode;
      var className = parent.className;
      if ( className  == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') {
          parent.className = 'crm-accordion-wrapper  crm-fatal-error-details-block';
      } else {
          parent.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block';
      }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a configuration change that I need to make?  Or is there some kind of known workaround?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-21T20:01:39.053Z
Comments.Text: There is a CoTS integration between CiviCRM and Gravity Forms (https://shop.civivip.com/civi-plugins/gravity-forms-integration/). Maybe this fits your business case.
Comments.UserDisplayName: cividesk
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-28T21:59:29.160Z
Comments.Text: I am not looking for integration, I am simply trying to PUT data to the gravity forms API, but CiviCRM is intercepting the route.  Disabling the CiviCRM plugin fixes the issue, but I need it in production so that's a non-starter.
Comments.UserDisplayName: Steve Czetty
Tags: <wordpress>
Title: CiviCRM seems to block PUT requests to Gravity Forms API
ThreadText: # CiviCRM seems to block PUT requests to Gravity Forms API
  
  (Asked by: username_0 on 2016-11-05)
  
  I am attempting to write a simple script that updates entries in `Gravity Forms` via their REST API. `GET` requests to the API work successfully, but `POST`s and `PUT`s (I have not tried `DELETE`) do not appear to be routed correctly.
  
  Instead, I am getting what appears to be a `CiviCRM` error template, but not wrapped by the rest of the site HTML. (See below)
  
  Disabling `CiviCRM` in `wordpress` gets my script working as designed.
  
  I am running `CiviCRM` version 4.7 and `Gravity Forms` version 2.1.0.1
  
  ```
  <div id="crm-container" class="crm-container" lang="en" xml:lang="en">
      <style type="text/css" media="screen">
      @import url(/wp-content/plugins/civicrm/civicrm/css/civicrm.css);
      @import url(/wp-content/plugins/civicrm/civicrm/bower_components/font-awesome/css/font-awesome.min.css);
    </style>
      <div class="messages status no-popup">
          <i class="crm-i fa-exclamation-triangle crm-i-red"></i>
          <span class="status-fatal">Sorry but we are not able to provide this at the moment.</span>
          <div class="crm-section crm-error-message">We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.&lt;br /&gt;&lt;br /&gt;Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.&lt;br /&gt;&lt;br /&gt;Error type: Could not find a valid session key.</div>
          <p>
              <a href="https://www.lofcenter.org/" title="Main Menu">Return to home page.</a>
          </p>
      </div>
  </div>
  <script language="JavaScript">
  function toggle( element ) {
      var parent = element.parentNode;
      var className = parent.className;
      if ( className  == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') {
          parent.className = 'crm-accordion-wrapper  crm-fatal-error-details-block';
      } else {
          parent.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block';
      }
  }
  </script>
  
  ```
  
  Is there a configuration change that I need to make? Or is there some kind of known workaround?
  
  **Tags:** wordpress
  
  > **Comments:**
  > **username_1**: There is a CoTS integration between CiviCRM and Gravity Forms (https://shop.civivip.com/civi-plugins/gravity-forms-integration/). Maybe this fits your business case.  
  > **username_0**: I am not looking for integration, I am simply trying to PUT data to the gravity forms API, but CiviCRM is intercepting the route.  Disabling the CiviCRM plugin fixes the issue, but I need it in production so that's a non-starter.  
  
  ---
  
  ## 0 answers
  
  