admin管理员组

文章数量:1278910

I'm adding in an iframe onto a page and when it makes a CORS request to another static file on my server, it always responds with a 405 response. I've tried editing my sites-enabled\domain file to resolve this but I can not actually change the response the client receives. I've gone so far as to try and return a 404 return when attempting to access the location of the static file that is the src component of the iframetag. Following the advice at , I tried adding in the appropriate headers with the add_header directive per the appropriate request method, but the response header did not change from the server.

The relevant section of my sites-enabled is the last server section, but I added the whole thing just in case theres other issues.

本文标签: nginxHandle HTTP Response For iframe405 on OPTIONSStack Overflow