|
Ajax call to server issue
|
|
13-07-2022, 13:52
(This post was last modified: 13-07-2022 13:53 by lyapounov.)
Post: #3
|
|||
|
|||
RE: Ajax call to server issue
(13-07-2022 12:38)simoncn Wrote: I have looked into this and it seems MinimServer would need to add an 'Access-Control-Allow-Origin: *' header to the HTTP response to make this work. I am a bit concerned about the security implications of making this change. If the POST request is "pre-flighted" by your browser (there are complex rules for when this is done), other actions by MinimServer would be required. So far, my website is only accessed locally (I am currently in the US, but I have set-up a VPN at my home). This site is client server architecture, and I have a login and a password for any management of my music, so everything about management is pre flight. And yes, I had to add the 'Access-Control-Allow-Origin: *' to access my server, even if on the same subnet. Now, I don't want to force you to open it. I have another solution, which is to make an exec statement on your script (I use php for my server side). BTW, if you don't open it, no client server architecture can send the command. I was wondering BTW: when I press the "rescan" button on the lumin app, how does the app sends the request to your server ? I thought it would be this post, but not possible if you don't allow CORS rule. So don't bother doing this. Thx |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Ajax call to server issue - lyapounov - 13-07-2022, 00:29
RE: Ajax call to server issue - simoncn - 13-07-2022, 12:38
RE: Ajax call to server issue - lyapounov - 13-07-2022 13:52
RE: Ajax call to server issue - simoncn - 13-07-2022, 14:11
RE: Ajax call to server issue - lyapounov - 14-07-2022, 11:54
RE: Ajax call to server issue - simoncn - 14-07-2022, 12:23
RE: Ajax call to server issue - lyapounov - 14-07-2022, 12:39
RE: Ajax call to server issue - simoncn - 15-07-2022, 09:12
RE: Ajax call to server issue - lyapounov - 15-07-2022, 11:18
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



