1
私のHerokuサーバーでRestifyを使用しています。私はこのエラーを取得しています:Restifyサーバーで「Access-Control-Allow-Origin」エラーが発生していません
XMLHttpRequest cannot load https://xxx.xxx.com/charging. Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://xxx.xxx.com' is therefore not allowed access.
The response had HTTP status code 405.
マイRestify構成は次のとおりです。
server
.use(restify.fullResponse())
.use(restify.bodyParser())
.use(restify.queryParser())
.use(restify.CORS({
origins: ['https://xxx.xxx.com', 'http://xxx.xxx.com']
}));
私の構成で欠けていますか?
http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource –
問題。 HTTPリクエストをすべてhttpsにリダイレクトする方法はありますか? – Burak