I have a wordpress site running which is set to use HTTPS, Within the wordpress site I have a widget in a theme that is using the Slim framework. When running on HTTP it does work well but with HTTPS I do get 404 error. The ajax calls are initiated from the browser and request sources that are on the same domain.
Browser log says: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://xxxxxxxx.xxx ' is therefore not allowed access. The response had HTTP status code 404.
Within the app only relative path is used. Within the html source I see some HTTP requests for images etc. but it doesn't complain about them
对于您的Ajax网址,请确保它们以https://开头,或者只是//
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.