Publish Gantt Chart in Google Cloud Server

Hi,

I have try using DHTMLX Gantt Chart in my local server and its works.
I try to deploy on my Google Cloud Server, but I got API error says that “Failed to load the data from (website-link)/dhxr1629770370250=1, server returns 404”

When I check on Issues, it says that “indicated whether to send a cookie in cross-site request by specific its SameSite attribute”:

  1. Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax , which prevents the cookie from being sent in a cross-site request. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.

Resolve this issue by updating the attributes of the cookie:

  • Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
  • Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests.
  1. AFFECTED RESOURCES

3 cookies

  • Name: Domain & Path
  • _ga : .dhtmlx.com/
  • _gcl_au : .dhtmlx.com/
  • _clck : .dhtmlx.com/

I have turned on/enabled my samesite cookies in Google Chrome, but the error still occur.
May I know what’s the error about and how to solve it?

Many thanks :slight_smile:

Hello Kimi,
The error 404 means that the location on the server is not found.
I suppose you need to send some kind of request tokens along with the URL.
The load method doesn’t support that feature, so, you will need to manually load the data by using an AJAX request. Then you will need to use the parse method to load the data:
https://docs.dhtmlx.com/gantt/desktop__server_side.html#customrequestheadersandparameters