Dev Kabir
Forum Replies Created
-
Forum: Plugins
In reply to: [Enable CORS] Save doesn’t workHello, version 1.2.2 has been released with fixes for your issues. If the problem persists, please inform me.
Forum: Plugins
In reply to: [Enable CORS] Save doesn’t workI have conducted multiple tests on the plugin, but I haven’t encountered this particular issue.
Thank you for bringing this to my attention. I am currently addressing it and will provide an update as soon as possible.
Could you please provide the log that begins with ‘settings’?
Forum: Plugins
In reply to: [Enable CORS] Save doesn’t workPlease reset your settings and configure them again. The plugin uses browser cache to minimize API calls to the server, which could potentially cause this issue.
If issue still persists, Could you also replicate all the steps you performed on your site here, please?
Please let me know.
Forum: Plugins
In reply to: [Enable CORS] Save doesn’t workWould you like to share a screenshot of current settings.
Forum: Plugins
In reply to: [Enable CORS] help me!where is the problem? Thanks!- Do you currently have a cache plugin installed? If so, please try re-saving your settings and clearing the cache.
2. If the issue persists, consider uninstalling and reinstalling the plugin.
if issue persist, create a temporary admin account for the developer, share credential to [email protected] for further investigation.
Forum: Plugins
In reply to: [Enable CORS] help me!where is the problem? Thanks!Regarding your initial error, this plugin does not support mixed content requests, such as those from HTTP to HTTPS or the other way around. If the issue persists, let me know and consider using the ‘*’ wildcard. I will look into this matter further and provide a solution as soon as possible.
Forum: Plugins
In reply to: [Enable CORS] help me!where is the problem? Thanks!It appears that you’re currently using version 1.2.0. I recommend updating to version 1.2.1, as this should resolve the issue.
Forum: Plugins
In reply to: [Enable CORS] Multiple Allowed WebsitesHi Luc,
Thank you for reaching out and for your kind words about my plugin!
Currently, my plugin allows you to add only one website in the “Allowed Websites” option. I have received suggestions to enable the addition of multiple websites, and I am planning to implement this feature. However, it will take some time.
In the meantime, you can use the wildcard character ‘*’ to meet your needs if you want to allow multiple websites.
Hello @garreta11,
Just checking in, are you able to resolve this issue?
Hello garreta11,
Thank you for using my plugin and for reaching out with your issue.
I understand that you’ve watched the video in the plugin description and have a grasp of how this plugin functions. However, based on the error message, it appears that you’re fetching data from ‘
https://dashboard.jordigarreta.com/’ to ‘https://www.jordigarreta.com’, and the plugin is installed on ‘https://www.jordigarreta.com’.The plugin should be installed on the source site. In your case, that would be
https://dashboard.jordigarreta.com.Forum: Plugins
In reply to: [Enable CORS] additional Allowed WebsitesHi @mspierings , thank you for your interest in my plugin. As this is an open-source project, the release of new functionalities might take some time. If you’re in a hurry, you’re welcome to apply the necessary code to your site.
Moreover, if you’re comfortable, you could share your implementation here. This would be a great help to anyone else who might need this feature in the meantime. I appreciate your understanding and contribution to the community.
Forum: Plugins
In reply to: [Enable CORS] Plugin update triggers fatal errorif ( array_key_exists( 'allowedMethods', $options ) && gettype( $options['allowedMethods'] ) === 'array' ) { header( 'Access-Control-Allow-Methods: ' . implode( ',', $options['allowedMethods'] ) ); } if ( array_key_exists( 'allowedHeader', $options ) && gettype( $options['allowedHeader'] ) === 'array' ) { header( 'Access-Control-Allow-Headers: ' . implode( ', ', $options['allowedHeader'] ) ); }Forum: Plugins
In reply to: [Enable CORS] Plugin update triggers fatal errorHi @tmpete,
Thank you for providing the error message. It appears that the issue is caused by a type error. The error message indicates that the
implode()function is being called with a string as its second argument, while it expects an array.I have updated plugin with 1.1.8 version.
However, if you have access to the following file:
/htdocs/wp1033564_9MD5WDX7NZ/www/staging/wp-content/plugins/enable-cors/src/Helpers/Cors.php, you can resolve this issue by making the following changes to lines 124-129 in the code:if ( array_key_exists( 'allowedMethods', $options ) ) { header( 'Access-Control-Allow-Methods: ' . is_array( $options['allowedMethods'] ) === 1 ? implode( ',', $options['allowedMethods'] ) : $options['allowedMethods'] ); } if ( array_key_exists( 'allowedHeader', $options ) ) { header( 'Access-Control-Allow-Headers: ' . is_array( $options['allowedHeader'] ) === 1 ? implode( ', ', $options['allowedHeader'] ) : $options['allowedHeader'] ); }Forum: Plugins
In reply to: [Enable CORS] additional Allowed Websites@kocevskiigorw, I will add this feature when I have time. I will update you when it’s done. I am marking this issue as resolved.
Forum: Plugins
In reply to: [Enable CORS] additional Allowed WebsitesHello @kocevskiigorw, thank you for your question.
Unfortunately, this feature is not available at the moment. I appreciate your interest and will keep you updated if there are any changes in the future.