I'm a rental server beginner.
A web page is created on the Sakura Internet rental server by practicing the program. (Light plan)
What we want to do is to set up a JSON file on the server and call the json file from an iPhone application (swift) created separately.
I referred to the above site and first copied it and used it.
let todosEndpoint = "https://jsonplaceholder.typicode.com/todos/"
If the URL of the part is unchanged, the acquisition of the JSON file was confirmed, but
let todosEndpoint = "http: // my domain/json/test.json"
So I could not get it if I changed to the address of my rental server.
I haven't messed up the rental server settings,
Do you need any security settings?
By the way, if you enter http: // your domain/json/test.json in your browser, you can see the contents.
Answer # 1
http communication is not allowed by default on current iOS.
Enable https on the rental server or
The app must allow http or not.
- i want to access php files under chroot environment via nginx
- Java how to upload files to the server specified directory
- vba - i want to access the site via a proxy server with selenium basic + chrome
- apache - py using cgi on sakura rental server becomes internal server error
- web server - cannot access the website created on xampp
- sakura rental server - about measures to concentrate access on sakura's rental server
- i cannot access files other than php in the environment of docker + nginx
- i want to run a go language program on the rental server
- tomcat does not start on rental server (centos 7)
- access if you register attached files in the table, you will end up with double registration
- when i access the local server with php, the browser is not displayed
- i want to access files with ajax url
- after setting s3 of aws, i cannot access the local server of mysql mysql password relationship
- sql server - i can't access phpmyadmin
- json - [node-sass] want to transpile scss files in multiple directories at once with node-sass (npm script)
- Two ways of golang file server (can access any directory)
- web server - only some files in wordpress have different owners, so permissions cannot be changed or deleted
- ruby on rails - cloud9 can't access rails server
- Springboot deploys linux to access server resources
- How PHP uploads image files to another server
- linux - about communication construction environment of ios application
- i want to get json from url in swift and pour it into label
- i can't get the image from the api
- mechanism of web page generated by api communication
- how to decode json array in swift
- xcode - about swift json serialization
- swift: i want to judge optional () included in the json response sent from the api connection destination
- swift:json data acquisition method (gurunavi api-support word-of-mouth)