Set cookies for cross origin requests

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here’s an explanation of my situation: I am attempting to set a cookie for an API that is running on localhost:4000 in a web app that is hosted on localhost:3000. It seems I’m receiving the … Read more

Permalink /%category%/%postname%/ returns 404 on OSX

I’m on OSX 10.8.4 with a pretty standard installation of WordPress 3.6.1 under the local OSX Apache/MySQL. If my permalinks are set to /%category%/%postname%/ I get a 404… This is working on the live server which I think is running CentOS, so it’s definitely something wrong on my machine. I don’t have any custom post … Read more

Why is ‘admin’ missing from my admin links?

I cloned a wordpress site to my local machine. Then I ran PHP’s built in web server in the root of the WordPress site, via ‘php -S localhost:3000’. I added my db credentials in wp-config.php. Then I added the following to the top of my wp-config.php file: define(‘WP_HOME’,’http://localhost:3000′); define(‘WP_SITEURL’,’http://localhost:3000′); I restarted the php server. I … Read more

Origin null is not allowed by Access-Control-Allow-Origin

I have made a small xslt file to create an html output called weather.xsl with code as follows: <!– DWXMLSource=”http://weather.yahooapis.com/forecastrss?w=38325&u=c” –> <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” exclude-result-prefixes=”yweather” xmlns:yweather=”http://xml.weather.yahoo.com/ns/rss/1.0″ xmlns:geo=”http://www.w3.org/2003/01/geo/wgs84_pos#”> <xsl:output omit-xml-declaration=”yes” indent=”yes”/> <xsl:strip-space elements=”*”/> <xsl:template match=”https://stackoverflow.com/”> <img src=”https://stackoverflow.com/questions/8456538/{/*/*/item/yweather:condition/@text}.jpg”/> </xsl:template> </xsl:stylesheet> I want to load in the html output into a div in an html file which I’m … Read more

Can’t see login page after migration

I already have an existing website on live server. I want to setup on local machine. Following Steps has been taken: Download whole website Place whole code under htdocs/mywp Change the database file. replace all link from https://www.example.com to http://10.1.15.5/mywp (my local IP) Import the database and change the wp-config file Deleted .htaccess file Now, … Read more