Forum Replies Created
-
AuthorPosts
-
March 2, 2020 at 7:03 pm in reply to: Add book intro in different language in homepage (coverbook) #28319You must have valid license to access this content.March 2, 2020 at 6:37 pm in reply to: Add book intro in different language in homepage (coverbook) #28317You must have valid license to access this content.You must have valid license to access this content.FocuxTheme SupportKeymaster
Hi
I have replied to you via Email, and sent you the EDD official answer, have you fixed the issue?
February 22, 2020 at 10:08 pm in reply to: Add book intro in different language in homepage (coverbook) #28178You must have valid license to access this content.February 22, 2020 at 10:00 pm in reply to: Mofect Mobile APP would like to connect to your store #28176FocuxTheme SupportKeymasterHi
Please upgrade Mofect Mobile plugin via the backend > Plugins, or download the latest version here: https://www.dropbox.com/s/6ngmwiuy00wnyty/mofect-mobile.zip?dl=0
I think this issue will be fixed.
Sorry for this bug.
Thanks
FocuxTheme SupportKeymasterHave you tried the method I mentioned above? Add the following codes to functions.php of your theme
function add_cors_http_header(){ header("Access-Control-Allow-Origin: *"); header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, OPTIONS, READ'); header('Access-Control-Allow-Headers: Origin, Content-Type, X-Auth-Token,authorization,XMLHttpRequest, user-agent, accept'); header("Access-Control-Allow-Credentials: true"); if ( 'OPTIONS' == $_SERVER['REQUEST_METHOD'] ) { status_header(200); exit(); }
Also, the latest version of App is v1.1.2, so if possible, you can download it to use.
You don’t need to install WordPress on localhost. In most cases, this kind of issue is the server-side configuration, but I’m not sure the bluehost web hosting configuration, because I use VPS. Anyway, you can try the method above.
Of course, if possible, you can install a wordpress on your localhost with local SSL, then connect it to App, check if the login feature is working or not.
Thanks
FocuxTheme SupportKeymasterIt’s hard to know what’s wrong with your local development environment and how is the configuration of your web hosting, because I can’t reproduce this issue on my localhost.
You can give a test once again, add the following codes to functions.php of your theme.
function add_cors_http_header(){ header("Access-Control-Allow-Origin: *"); header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, OPTIONS, READ'); header('Access-Control-Allow-Headers: Origin, Content-Type, X-Auth-Token,authorization,XMLHttpRequest, user-agent, accept'); header("Access-Control-Allow-Credentials: true"); if ( 'OPTIONS' == $_SERVER['REQUEST_METHOD'] ) { status_header(200); exit(); }
If still doesn’t work, just change
header("Access-Control-Allow-Origin: *");
to
header("Access-Control-Allow-Origin: http://localhost:8100");
Remember replace the port of http://localhost:8100 to yours.
By the way, is your wordpress installed on the web hosting or also on the local environment? What’s the version of Mostore you use?
FocuxTheme SupportKeymasterNo special instruction, sometimes, it’s the server-side issue, but I’m not sure.
You can give a test:Edit the Mofect Mobile plugin file ( inc/api/wp_login.php ), find “return $respond;”, change to
header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); return $respond;
Please let me know the result.
Thanks
FocuxTheme SupportKeymasterHi
You can give this extension a test for local development environment
https://chrome.google.com/webstore/detail/moesif-orign-cors-changer/digfbfaphojjndkpccljibejjbppifbc/related?hl=enThanks
-
AuthorPosts