• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Developer Token- VVCALL.pgm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Developer Token- VVCALL.pgm

    I am in a test environment on my local computer testing the call between the front-end and the valence framework. I have setup the developer token on in the admin and have written a small test using the EXTJS simple form valence example. The program VVCALL fails during execution and does not return a response. The error is "VVCALL was called without a "pgm" post parm." But i have passed this parameter. Is there a particular order to the parameters I am not aware of?
    You do not have permission to view this gallery.
    This gallery has 4 photos.

  • #2
    The issue is related to CORS. I have updated the server to accept CORS, but is there a better way than changing the server?

    Comment


    • #3
      Hi,

      Not sure on your local setup however when we develop locally we have a local Node server that is a proxy to the IBM i Valence instance for all data requests. That way we don't have to worry about CORS when doing development locally.

      You would need to install Node then some npm packages to proxy the requests for example we use "express-http-proxy".

      Thanks

      Comment


      • #4
        So each individual local computer is running a proxy server, or you run the proxy server on the IBMi?

        Comment


        • #5
          This old blog post may be helpful...
          https://www.cnxcorp.com/blog/using-y...e-valence-apps

          Comment


          • #6
            Awesome! I had been trying to find that

            Comment

            Working...
            X