CORS with iFrame
-
A site I help out with for a company that offers training/safety courses for contractors uses a third-party scheduling system to handle their registrations. The course schedule gets iFramed in and is just accessible via a subdomain “secure.domain.com”. Recently, they split the site into two websites (two separate domains) to handle courses in two different states.
The company that does the scheduling wanted me to enable CORS so that they could identify which location is accessing the schedule to serve the right one. At this point I’ve tried enabling CORS through the .htaccess, functions.php, and the http headers plugin. All 3 enable CORS and I can see the allow-origin response header for files and scripts but it’s not being returned on the iFrame for the class schedule which is the object they need it to be on.
I’ve never dealt with CORS before, I get the gist of it, but at this point I’m starting to think it’s not something I’m doing incorrectly and it’s something they need to do on their end since I can see the appropriate response headers on everything besides their iFrame. Anyone have any experience or advice with this?
The topic ‘CORS with iFrame’ is closed to new replies.