<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Server2Server Generator Extension in Forma Site Design Developer Forum</title>
    <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12286472#M560</link>
    <description>&lt;P&gt;I filled out the fields as indicated in the instructions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mev_od_0-1696503150954.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275558iE8094B75F4AD772D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mev_od_0-1696503150954.png" alt="mev_od_0-1696503150954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call is made in the left or right menu in the project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mev_od_2-1696503451120.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275560i764E181AB9390D27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mev_od_2-1696503451120.png" alt="mev_od_2-1696503451120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 10:58:42 GMT</pubDate>
    <dc:creator>mev_od</dc:creator>
    <dc:date>2023-10-05T10:58:42Z</dc:date>
    <item>
      <title>Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12284774#M558</link>
      <description>&lt;P&gt;I've stuck with problem.&lt;BR /&gt;I took the example used here &lt;A href="https://aps.autodesk.com/en/docs/forma/v1/developers_guide/generators/http-example-hello-world/" target="_blank"&gt;https://aps.autodesk.com/en/docs/forma/v1/developers_guide/generators/http-example-hello-world/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Created an application (&lt;A href="https://aps.autodesk.com" target="_blank"&gt;https://aps.autodesk.com&lt;/A&gt;), created an extension (&lt;A href="https://app.autodeskforma.eu/extensions-management/" target="_blank"&gt;https://app.autodeskforma.eu/extensions-management/&lt;/A&gt;), specified &lt;A href="http://localhost:8080" target="_blank"&gt;http://localhost:8080&lt;/A&gt; as the endpoint. After that I generated API keys, cloned the repository, entered my keys, and connected the extension in the Form.&lt;BR /&gt;But when I call my extension, I receive a GET request instead of a POST. In addition, the headers contain the "localhost:8080", and not "&lt;A href="https://app.autodeskforma.eu" target="_blank"&gt;https://app.autodeskforma.eu&lt;/A&gt;" and "&lt;A href="https://app.autodeskforma.com" target="_blank"&gt;https://app.autodeskforma.com&lt;/A&gt;".&lt;BR /&gt;I used the server code without changes, I just substituted my API keys and added a few console.log().&lt;BR /&gt;Below I will give the headers text and transfer method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;req.headers {
  host: 'localhost:8080',
  connection: 'keep-alive',
  'sec-ch-ua': '"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"',
  'sec-ch-ua-mobile': '?0',
  'sec-ch-ua-platform': '"Windows"',
  'upgrade-insecure-requests': '1',
  'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36',
  accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
  'sec-fetch-site': 'cross-site',
  'sec-fetch-mode': 'navigate',
  'sec-fetch-user': '?1',
  'sec-fetch-dest': 'iframe',
  'accept-encoding': 'gzip, deflate, br',
  'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6,ro;q=0.5'
}
---------------

req.method GET&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 16:34:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12284774#M558</guid>
      <dc:creator>mev_od</dc:creator>
      <dc:date>2023-10-04T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12286177#M559</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;But when I call my extension, I receive a GET request instead of a POST. In addition, the headers contain the "localhost:8080", and not "&lt;A href="https://app.autodeskforma.eu" target="_blank" rel="noopener"&gt;https://app.autodeskforma.eu&lt;/A&gt;" and "&lt;A href="https://app.autodeskforma.com" target="_blank" rel="noopener"&gt;https://app.autodeskforma.com&lt;/A&gt;".&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you describe what you mean by "call my extension"? Exactly how are you doing this? What causes this request?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The host header you are referring to is the host that's used to access your API, not the referrer host. So that looks correct given what you describe. However there are other headers missing - it almost sounds like you've pointed an embedded view URL to your API or similar (due to Chrome setting sec-fetch-dest to iframe, which is unexpected).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 08:27:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12286177#M559</guid>
      <dc:creator>henrik_steenJL382</dc:creator>
      <dc:date>2023-10-05T08:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12286472#M560</link>
      <description>&lt;P&gt;I filled out the fields as indicated in the instructions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mev_od_0-1696503150954.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275558iE8094B75F4AD772D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mev_od_0-1696503150954.png" alt="mev_od_0-1696503150954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The call is made in the left or right menu in the project.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mev_od_2-1696503451120.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275560i764E181AB9390D27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mev_od_2-1696503451120.png" alt="mev_od_2-1696503451120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 10:58:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12286472#M560</guid>
      <dc:creator>mev_od</dc:creator>
      <dc:date>2023-10-05T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287867#M561</link>
      <description>&lt;P&gt;Hi. I see that you have used the same URL for both the endpoint and the embedded view. You need to use different URLs for these as the endpoint should be a service that runs the generator, while the embedded view should serve a HTML page that is displayed when you click the buttons you've underlined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The HTTP generator described in the guide you linked to is not invoked by either of these buttons. It's invoked when running the generator from the tool menu. Hover over the last icon in the narrow menu on the right side (to the left of the larger right menu) and select your generator. This is what will send a POST request to your service.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 19:56:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287867#M561</guid>
      <dc:creator>trygve_aaberge</dc:creator>
      <dc:date>2023-10-05T19:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287882#M562</link>
      <description>&lt;P&gt;You mean this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mev_od_0-1696536171198.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275875i87587D884CC4E7FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mev_od_0-1696536171198.png" alt="mev_od_0-1696536171198.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 20:03:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287882#M562</guid>
      <dc:creator>mev_od</dc:creator>
      <dc:date>2023-10-05T20:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287891#M563</link>
      <description>&lt;P&gt;Yes, correct. Though I see you only have the generators from the local_testing extension. For an initial test, this is fine, but you probably want to add your own generator in order to define what inputs the generator takes. See&amp;nbsp;&lt;A href="https://aps.autodesk.com/en/docs/forma/v1/developers_guide/generators/http-example-hello-world/#defining-a-generator" target="_blank"&gt;https://aps.autodesk.com/en/docs/forma/v1/developers_guide/generators/http-example-hello-world/#defining-a-generator&lt;/A&gt;&amp;nbsp;for a description on how to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, take a look at the next page in the guide if you haven't done that yet:&amp;nbsp;&lt;A href="https://aps.autodesk.com/en/docs/forma/v1/developers_guide/generators/run-generator/" target="_blank"&gt;https://aps.autodesk.com/en/docs/forma/v1/developers_guide/generators/run-generator/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It describes how to install your extension and run your generator.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 20:07:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287891#M563</guid>
      <dc:creator>trygve_aaberge</dc:creator>
      <dc:date>2023-10-05T20:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Server2Server Generator Extension</title>
      <link>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287930#M564</link>
      <description>&lt;P&gt;Excellent thank you! I was able to receive a POST request.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 11:13:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/forma-site-design-developer/server2server-generator-extension/m-p/12287930#M564</guid>
      <dc:creator>mev_od</dc:creator>
      <dc:date>2023-10-11T11:13:53Z</dc:date>
    </item>
  </channel>
</rss>

