My coinbase payment button won't show. I'm getting this error message from coinbase:
Refused to display 'https://coinbase.com/transactions' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
Their customer service sucks, I've been waiting 2 days for a fix for this.
I've tried in htaccess
Header set Access-Control-Allow-Origin "%{HTTP_ORIGIN}e" env=HTTP_ORIGIN
<ifModule mod_headers.c>
Header always set Access-Control-Allow-Origin: "*"
Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, OPTIONS"
Header always set Access-Control-Allow-Headers "X- Requested-With"
</ifModule>
none of this is working...
how do I fix this?
The iframe is just how their buttons work. If I use their demo buttons it works fine. When I change the data-code on the demo button to my data code, it throws that error.
Coinbase will not allow you to put the transactions page as an iframe. If you log into your account and go here (https://coinbase.com/merchant_tools), you can create a payment button that will allow you to accept button.