Fixed it by adding Header set Access-Control-Allow-Origin "*"
in apache2.conf
:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
Header set Access-Control-Allow-Origin "*"
</Directory>
Related Posts:
- Custom plugin settings: clicking “save changes” does not display success message
- Plugin getting Cannot modify header information errors
- What is the most efficient way of adding additional functionaliy for admin only
- Echo custom admin field into a is_single()
- Add a checkbox in plugin options page and make it actually work
- Best collection of code for your 'functions.php' file [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- ‘Global’ settings page for multisite plugin
- Changing the “Plugin Activated” Message Default
- Modifying a JS file with data from plugin settings
- Changing wp login url without .htaccess
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How can I log a user out of WordPress before the page loads?
- Is there a hook attached to general settings save?
- How to find out if option exists but is empty?
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Creating button next to “add media” that allows you to choose a single post
- Bad Request (Invalid Hostname) on working server, database problem
- Add custom meta box on Post page
- Is there an action that is called when a post is restored from the trash?
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- Custom options page checkbox will not save, despite working with text
- WooCommerce “Save Changes” button appears inside custom settings
- why in my wordpress admin panel the membership option is not showing
- Remove obsolete plugins artifacts from database tables
- Admin Dashboard with Custom Tab for Client
- add action wp_head not working
- How to debug register_setting callback function
- Why is the Settings API is not saving my array of options
- wordpress reusable content blocks
- Cannot access wp-admin after disabling all plugin
- Can’t get plugin settings page to save data
- Default Plugin Settings Not Writing to Database
- Update Option Error: Notice: Undefined index
- How to send little data between admin pages of my plugin?
- How do i save plugin-specific info?
- How can I add an options page for my class based plugin?
- problems with wordpress and php version 5.3.3-1
- Editing admin pages in WordPress [closed]
- Hook to plugins admin settings
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Image upload and other options in the same plugin settings form?
- Admin Panel pagination link styles
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Display update notification messages like ‘What’s New’
- How to get specific setting by settings_fields()?
- Add Plugin options as subpage to Theme options page
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Enabling plugin failed because MySQL user do not have CREATE permissions
- do_action() hook into load-(page)
- How to create an option page for this simple plugin
- Gathering and logging data from a plugin: how to do it without race conditions?
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Updating options into the wp database performance
- Change the style of h1, h2, only in post entry
- How to add options to the plugin page?
- Simply poll & Events Calendar plugins clashing
- get_option / wp_localize_script Not Working in OOP Plug In
- Change in one place the data about the company, which are placed on several pages
- How to save plugin custom settings page fields
- Every time I save my plugin options it erases another plugin options
- Changing plugin options from theme functions file?
- Adding a theme option to the admin that lets me turn on/off a javascript file
- Equivalent of admin.php for public pages
- Error: Can´t access facebook comment plugin admin page
- Multisite Plugin – Access options (wp_options) on child sites
- Ajax request sends url rather than data
- Gathering all Custom Post Type posts in to array/object the proper way
- Adding a jQuery modal dialog to the admin area
- Color Picker UI in admin is not correct
- How to save Setting pages data to the database?
- Managing and deleting transients with dynamically generated transient names
- How to create admin setting for this small plugin
- Load google font script based on optgroup label selected
- How to save the option’s new values plus old value without overwrite old one
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How to detect if i am on plugin’s settings page
- How do I add a textarea (multirow) option to my WordPress plugin?
- How to store multiple instances of the plugin’s options for various shortcodes
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- Add_Meta_box to custom page (formidable edit post)
- why my wordpress dont have toolbar like, plugin, themes and other?
- Register setting on plugin activation
- database – multiple wordpress installations using same database – can they share plugin settings?
- How to enable Admins to see Plugins
- Plugin option for input box validation
- Options page textarea to populate custom post select field
- Defined user role to access plugin’s pages
- Embedding code snippets in posts with indentation
- Is saving multiple options or saving multiple items in one option better?
- Saving an array to get_options
- ‘all’ hook and get_option issue
- How to find an option in the database?
- Building a simple “settings” plugin to change textstrings on the home page
- Adding hero images to blog posts
- Frontpage Admin Bar Disappeared
- What is the recommended way to be notified of security updates to my plugins? [closed]
- How to access values from your own settings page in javascript?
- Display Any Field fromAdmin Panel in Frontend via Shortcode?