Disabling same-origin policy in Safari

后端 未结 5 1001
忘掉有多难
忘掉有多难 2020-11-29 04:28

For development purposes, I need to disable the same-origin policy in Safari (on Windows) on my machine.

In Chrome, this can be done by launching with the flag

5条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 05:05

    Later versions of Safari allow you to Disable Cross-Origin Restrictions. Just enable the developer menu from Preferences >> Advanced, and select "Disable Cross-Origin Restrictions" from the develop menu.

    If you want local only, then you only need to enable the developer menu, and select "Disable local file restrictions" from the develop menu.

提交回复
热议问题