We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I need to pass CORS headers into the OPTIONS request. Chrome block the request before it can get into the plugin:
`(window).webserver.onRequest( function (request) { debugger; console.log("O MA GAWD! This is the request: ", request);
(<any>window).webserver.sendResponse( request.requestId, { status: 200, body: '<html>Hello World</html>', headers: { 'content-type': 'text/html', "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers" : "content-type,transaction", "Access-Control-Allow-Methods" : "GET,HEAD,PUT,PATCH,POST,DELETE" } } ); } );`
Is there any way to implement it?
The text was updated successfully, but these errors were encountered:
@cloudfysystems Its been months, have you got any solution? I really need to know! I'm using ionic 4.
Sorry, something went wrong.
No branches or pull requests
Hello,
I need to pass CORS headers into the OPTIONS request. Chrome block the request before it can get into the plugin:
`(window).webserver.onRequest(
function (request) {
debugger;
console.log("O MA GAWD! This is the request: ", request);
Is there any way to implement it?
The text was updated successfully, but these errors were encountered: