Please suggest some way as I am quiet new to PHP ecosystem. It is to be noted that dreamfactory instance is persisting cors entry to postgresql database, I have checked it. Select * from "cors_config" where enabled = 1::BOOLEAN or Select * from "cors_config" where enabled = true or This query should be (in case of postgresql): NOW my question is is there is a way to modify this sql query made by DSP instance ? Rest all query including the one that dreamfactory instance makes, will fail.ĪND when ths query fails, the instance interpretes that cors setting are not enabled, and thus deny headers. Select * from "cors_config" where enabled = CAST( 1 AS BOOLEAN ) Select * from "cors_config" where enabled = 1::BOOLEAN Select * from "cors_config" where enabled = true Select * from "cors_config" where enabled = '1' or The only way to query a boolean field in postgresql is : When a admin user creates a cors entry through admin console, that entry is stored as a record in cors_config table. There is a column/field in this table named ‘enabled’ of boolean type with default value true. Now you can to install the DreamFactory Services Platform with one-click on AWS, VMWare, Windows Azure, Linux, and OS X Bitnami sat down with DreamFactory founder Bill Appleton to talk a little about DreamFactory’s history and where he sees the platform headed. There is a table named “cors_config” created by dreamfactory setup, in which cors entries are stored for that particular dreamfactory instance. Bitnami makes installing DreamFactory a breeze. Select * from "cors_config" where enabled = 1 Looking at logs and some fiddling, I came to know that before receiveing a request, dreamfactory instance queries its system database(which in my case is postgresql 9.5.x) using the below SQL query : Here my dreamfactory and postgresql logs(I am using postgresql as the default system dbms for dreamfactory): I think that is because Advanced REST Client make requests on sockets by default, instead on XHRĬan someone provide any clues? Does it has something to do with interfacing between dreamfactory and postgresql ? I am hosting this dsp instance on my VPS via bitnami dreamfactory installer.īUT when I tested with Advanced REST Client the request completed successfully creating the user. The webserver used is nginx if that matters. Request header field X-DreamFactory-Api-Key is not allowed by Access-Control-Allow-Headers Now when I am trying to register a user using with X-DreamFactory-Api-Key header set to API key created by dsp, I am getting the below error: XMLHttpRequest cannot load I created an app in DSP instance and a API key is generated. I have setup CORS setting as below Origin required I’m currently using bitnami dreamfactory 2.3.0-4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |