I have a server setup and everything is recovering, but I'm
About errors are getting access-control-permission-not allowed by the original This is very strange because both the hoarse server which hosts my site is on port 9000 And my remaining service is on-port 8678
Anyway, I found it
https://gist.github.com/Vp3n/5340891 What is harsh How to enable CORS on the server, but my hoarse file does not look like this ... This is my current part of my scathing file
connect: {options: {port: 9000, // To reach the server from outside, change it to '0.0.0.0'. Hostname: 'Localhost'}, LiveLoad: {Options: {Middleware: Function (Connect) {Returns [LRSNippet, Mount Foulder (Connect, '.mp'), Mountfolder (Connect, Yemen Conf.app)]; Any help really appreciated Thanks in advance
I'm not sure "It does not look like it does not look like I do," but you need to read the documents of the Grant-Contib-Connect document that tells you that the Middleware option accepts a function that intermediates Returns an array. The referring summary is a simple middleware that allows the corse.
In your case it will look like:
connect: {options: {port: 9000, // to access it from 'out of 0.0.0.0' server Replace. Hostname: 'Localhost'}, LiveLoad: {Options: {Middleware: Function (Connect) {Returns [LRSNippet, Mount Foulder (Connect, '.mp'), Mountfolder (Connect, Yemen Config.app), Function (Rick, Race, next) {Res.setHeader ('access-control-permission-origin', '*'); Res.setHeader ('Access-control-permission-methods', '*'); the upcoming(); }]; }}}, Exam: {
No comments:
Post a Comment